Called to execute the action
OptionaldescriptionAdditional description of the action
OptionallearnThe user requested to 'learn' the values for this action. Note: As of 2.0, you should only return the values that have been learned, so that expressions in any id fields will be preserved
OptionallearnTimeout for the 'learn' function (in milliseconds) Companion sets a default value of 5s, to ensure that the learn does not get stuck never completing You can change this if this number does not work for you, but you should keep it to a sensible value
Name to show in the actions list
The input fields for the action
OptionaloptionsOnly monitor the specified options for re-running the subscribe/unsubscribe callbacks It is recommended to set this for all actions using subscribe, to reduce unnecessary calls when the user has the values driven by expressions. If not set, all options changes will trigger unsubscribe/subscribe
OptionalskipIf true, the unsubscribe callback will not be called when the options change, only when the action is removed or disabled
OptionalsortAlternate value to use when sorting the list of actions By default, the actions are ordered by the name field, but you can override this without altering the visible name by setting this value
OptionalsubscribeCalled to report the existence of an action Useful to ensure necessary data is loaded
OptionalunsubscribeCalled to report an action has been edited/removed Useful to cleanup subscriptions setup in subscribe
The definition of an action