User Tools

Site Tools


commands:zone_commands:trigger_add

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
commands:zone_commands:trigger_add [2025/05/13 14:24] theocommands:zone_commands:trigger_add [2025/05/17 20:51] (current) – external edit 127.0.0.1
Line 7: Line 7:
   * **level** is the value at which the trigger will fire   * **level** is the value at which the trigger will fire
   * **string/rise/fall/both** determines if the trigger works with strings, or if it's numeric, at which edge the trigger will fire((i.e. if it's set to fall, it will only fire if the variable's value falls past the trigger value))   * **string/rise/fall/both** determines if the trigger works with strings, or if it's numeric, at which edge the trigger will fire((i.e. if it's set to fall, it will only fire if the variable's value falls past the trigger value))
-  * **oneshot/reset/<reset level>** is an optional field that determines what happens after the trigger has fired - if it's absent, the trigger will need to be rearmed manually; the flag "oneshot" will remove the trigger after firing once; the flag "reset" will cause trigger to go on firing every time the condition is met; placing a value in this field will require the variable to reach this value to re-arm the trigger((this is to provide the option of hysteresis in a the trigger mechanism and prevent over-firing in a noisy system.))+  * **oneshot/reset/{reset level}** is an optional field that determines what happens after the trigger has fired - if it's absent, the trigger will need to be rearmed manually; the flag "oneshot" will remove the trigger after firing once; the flag "reset" will cause trigger to go on firing every time the condition is met; placing a value in this field will require the variable to reach this value to re-arm the trigger((this is to provide the option of hysteresis in a the trigger mechanism and prevent over-firing in a noisy system.))
   * **command** is the command to be executed when the trigger is fired   * **command** is the command to be executed when the trigger is fired
commands/zone_commands/trigger_add.1747146298.txt.gz · Last modified: (external edit)