User Tools

Site Tools


dictionary:unitcontrol:block

Block Unit

Blocks the unit in the current state or value and will not allow other scripts to change the state or value of the unit until it is unblocked.

Usage:

block unit (name of unit)

Optional Parameters:

in (integer, creates a scheduled event to block the unit in this many seconds)
for (integer, creates a scheduled event to unblock the unit in this many seconds)

Examples:

block unit "bedroom motion" for 2 * hours

Notes:

This verb allows a script to prevent any other script from issuing a command to either a single unit/address or a group of units. Thus, scripts can be written for sensors which always turn on lights or sound alarms regardless of other conditions. You then write scripts which block or unblock units or grops according to time of day, daylight, password entry, etc.

the “force on/off” verbs are specifically provided to override the blocking function.

dictionary/unitcontrol/block.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1