v1.2.1.0 #6
mpaperno
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Changes since v1.2.0-beta1
SavedDefaultType.NoSavedDefaultenum toNoDefaultValue(old version deprecated but still available in scripts).Dir.list()andDir.infoList()methods to list directory contents, with filtering and sorting options.Dir.info()andFile.info()methods to get details about individual file system entries (the methods are equivalent and return information about either files or folders).FileInfoobject type containing details about a file system object (name, type, size, timestamps, etc). Returned byDir.info()/File.info()or as a list of entries fromDir.infoList().This is a workaround for the TP issue where it may not register the new state before handling the state update message, which can result in TP log warnings about the state being updated "not belonging to this plugin".
DSE.stateCreate()method:delayMs(integer) argument to delay further execution after creating a state to allow TP to process the state creation message before sending astateUpdate()for the new state. (See previous item about using this as workaround for TP issue.)force(boolean) argument to force TP to evaluate the default value in action flows as if it was a state update (otherwise it ignores the default in "plug-in state changed" events).stateCreate(id, description, defaultValue = "", delayMs = 0)overload that automatically populates the parent category field.stateCreate(id, description, options)overload taking an object of all optional arguments (see docs for details).TP.broadcastEventevent data forpageChangeevent (previousPageName,deviceName,deviceId,deviceIp).AbortSignal'sabortedproperty was never set totrueafter the parentAbortController'sabort()method was called (theabortevent was still emitted, but the property value didn't change).@Raeason TP's Discord for reporting and troubleshooting with us).Full log: v1.2.0-beta1...v1.2.1
This discussion was created from the release v1.2.1.0.
Beta Was this translation helpful? Give feedback.
All reactions