Closed w194 closed 6 years ago
It works when using the hex address instead of decimal
def fhem_to_hg_hex(x):
return hex(int(x.replace("1", "0").replace("F", "1"), 2))
fhem_to_hg_hex("1FFF1FF0FF") -> 0x1db
(Family)> pc IT-COC 2 0x1db
Added peer 4 with address 0x000001DB and serial number ITD000001DB.
No idea why it didn't work with the decimal address - i should... But great it works now!
I replaced all "1" with "0" then all "F" with "1" in the fhem string, convert to decimal then added the switch in homegear
pc IT-COC 2 475
then I tried to change STATE using
$hg->setValue(2, 1, "STATE", true);
Nothing happens at the switch but according to log the message is sent:
It looks like wrong packet is sent. It sends
s11FF1110FFFF
instead ofs1FFF1FF0FFFF
. So the address will be 195 not 475.