getstate
- getstate,<module>:<connector>
Gets the state of relay number <connector>. Relay modules are all accessible via module 1.
module : Valid values 1
connector : Valid values 1 - 8 (relay 1 - 8)
Examples:
Get state of relay 2
getstate,1:2
Response
state,1:2,1
- relay 2 is ONIf relay 2 is toggled, it will return ON state until the delay is elapsed and it turns off, then it will return OFF state.
Get state of relay 6
getstate,1:6
Response
state,1:6,0
- relay 6 is OFF