setgstate
- setgstate,<module>:<connector>,<state>[,<delay>]
Sets the state of relay group number <connector>. Relay groups are all accessible via module 1.
module : Valid values 1
connector : Valid values 1 - 4 (relay 1 - 4)
state : Valid values 0,1,2
delay : Valid values 0 - 32767 (seconds)
State
Result
0
OFF
1
ON
2
Toggle
When State is 2, the relay group will turn on, after <delay> seconds the relay group will turn off. Min delay is 0, max is 32,767.
Examples:
Turn on relay group 2
setgstate,1:2,1
Response
gstate,1:2,1
Turn on relay group 3 for 15 seconds
setgstate,1:3,2,15
Response
gstate,1:3,2,15