graemef
February 6th, 2003, 06:00 PM
I have modified the X10 plugin to allow querying the status of X10 devices. Unfortunately not all X10 devices support querying, and I don't appear to have any that do, so I cannot test it. Could someone please download this and test the functionality.
To query a device enter A 1 STATUS as the command for the status of A1 etc. The device will respond and the plugin will send an event to girder in the format "A_1_Status On", "A_1_Status Off" if individual X10 events have been configured or set the girder variable X10_Command to these values if "send all X10 events to one event" is set.
Note: Wait 2 secs after a status request for the response. X10 does not include the housecode and devicecode in the status response so we store these until the response comes back. Subsequent requests will overwrite them.
Cheers
Graeme
To query a device enter A 1 STATUS as the command for the status of A1 etc. The device will respond and the plugin will send an event to girder in the format "A_1_Status On", "A_1_Status Off" if individual X10 events have been configured or set the girder variable X10_Command to these values if "send all X10 events to one event" is set.
Note: Wait 2 secs after a status request for the response. X10 does not include the housecode and devicecode in the status response so we store these until the response comes back. Subsequent requests will overwrite them.
Cheers
Graeme