Hello,
According to the VM201 protocol, the status of the relays will be sent whenever the status of a relay changes. And it does. But! The status that is sent seems to contain the previous state of the relay.
Is the below expected behavior?
Please copy the content below in a text editor. I don’t manage to get it formatted nicely here.
- Status request -> Relay 1 is OFF.
14:09:04.715 INFO Request channel 1 status.
14:09:04.716 DEBUG Encoded command: b’R’ and data: b’\x01’ to: b’\x02\x06R\x01\xa5\x03’
14:09:04.739 DEBUG Decoding VM201 packet: b’\x02\x08S\x00\x00\x00\xa3\x03’
14:09:04.739 INFO Output: 0, Timer: 0, Input: 0.
14:09:04.776 DEBUG Decoding VM201 packet: b’\x02\x16N\x01Relay 1\x00\x00\x00\x00\x00\x00\x00\x00\x00K\x03’
14:09:04.801 DEBUG Decoding VM201 packet: b’\x02\x16N\x02Relay 2\x00\x00\x00\x00\x00\x00\x00\x00\x00I\x03’
14:09:04.801 DEBUG Decoding VM201 packet: b’\x02\x16N\x03Relay 3\x00\x00\x00\x00\x00\x00\x00\x00\x00G\x03’
14:09:04.827 DEBUG Decoding VM201 packet: b’\x02\x16N\x04Relay 4\x00\x00\x00\x00\x00\x00\x00\x00\x00E\x03’
14:09:04.827 DEBUG Decoding VM201 packet: b’\x02\x16N\x05Relay 5\x00\x00\x00\x00\x00\x00\x00\x00\x00C\x03’
14:09:04.859 DEBUG Decoding VM201 packet: b’\x02\x16N\x06Relay 6\x00\x00\x00\x00\x00\x00\x00\x00\x00A\x03’
14:09:04.860 DEBUG Decoding VM201 packet: b’\x02\x16N\x07Relay 7\x00\x00\x00\x00\x00\x00\x00\x00\x00?\x03’
14:09:04.886 DEBUG Decoding VM201 packet: b’\x02\x16N\x08Relay 8\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x03’
14:09:04.886 DEBUG Decoding VM201 packet: b’\x02\x16N\tInput\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x81\x03’
- Switch channel 1 ON -> Reports that relay 1 is OFF
14:09:05.982 INFO Switching on channel 1.
14:09:05.983 DEBUG Encoded command: b’O’ and data: b’\x01’ to: b’\x02\x06O\x01\xa8\x03’
14:09:05.983 DEBUG Decoding VM201 packet: b’\x02\x08S\x00\x00\x00\xa3\x03’
14:09:05.983 INFO Output: 0, Timer: 0, Input: 0.
- Switch channel 1 OFF -> reports that relay 1 is ON
14:09:05.985 INFO Switching off channel 1.
14:09:05.985 DEBUG Encoded command: b’F’ and data: b’\x01’ to: b’\x02\x06F\x01\xb1\x03’
14:09:06.014 DEBUG Decoding VM201 packet: b’\x02\x08S\x01\x00\x00\xa2\x03’
14:09:06.014 INFO Output: 1, Timer: 0, Input: 0.
VM201 firmware version: 1342