getgstateΒΆ

getgstate,<module>:<connector>

Gets the state of relay group number <connector>. Relay groups are all accessible via module 1.

module : Valid values 1

connector : Valid values 1 - 4 (group 1 - 4)

Examples:

Get state of group 2

getgstate,1:2

Response

gstate,1:2,1 - group 2 is ON

If group 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 group 6

getgstate,1:6

Response

gstate,1:6,0 - group 6 is OFF