CRC insertion in Plugwise commands incorrect
crc's are calculated as an integer in CalculateCRC and converted to hex with:
sCRC = Hex(CalculateCRC(sString))
This results in incorrect CRC lengths. (CRC's can be three bytes this way when the result has a leading 0 and will create an invalid message).
The command is not executed by the plug.
The correct way is sCRC = Hex(CalculateCRC(sString),4), always generating a 4 byte CRC.