11-03-2021, 01:34 AM
add "TCP in" node , when switch button pressed or wireless remoter pressed, it will feedback a string that which key is pressed. as this format:
Feedback:RELAY-KEY-255,x,1,OK (x is the channel of Relay)
change the status of one relay, such as your relay is ON, when send this command , relay will be OFF. if your relay is OFF, when send this command , relay will be ON.
more details: https://www.kincony.com/smart-controller...tocol.html
when you get the string, get the sub-string "x,1". such as "2,1" means : key-2 is pressed and relay2 is ON. "2,0" means : key-2 is pressed and relay2 is OFF.
so you can get the sub-string to know the state and update the entity state for home assistant.
Feedback:RELAY-KEY-255,x,1,OK (x is the channel of Relay)
change the status of one relay, such as your relay is ON, when send this command , relay will be OFF. if your relay is OFF, when send this command , relay will be ON.
more details: https://www.kincony.com/smart-controller...tocol.html
when you get the string, get the sub-string "x,1". such as "2,1" means : key-2 is pressed and relay2 is ON. "2,0" means : key-2 is pressed and relay2 is OFF.
so you can get the sub-string to know the state and update the entity state for home assistant.