Smart Home Automation Forum
i need help how to use tcp feedback node to update relay state - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Development (https://www.kincony.com/forum/forumdisplay.php?fid=4)
+--- Thread: i need help how to use tcp feedback node to update relay state (/showthread.php?tid=1020)



i need help how to use tcp feedback node to update relay state - itzek - 11-02-2021

Hi
I have H32L I connect it to home assistant : https://www.kincony.com/how-to-create-switch-to-control-relay-on-home-assistant.html
When I power on or off channel from switch terminal board  or wall push bottom it power on but the real status not update on home assistant  app is not changing the status in home assistant to on or off
i work whit node-red ,          , need help whit this


RE: i need help how to use tcp feedback node to update relay state - admin - 11-03-2021

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-development-protocol.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.


RE: i need help how to use tcp feedback node to update relay state - itzek - 11-13-2021

(11-03-2021, 01:34 AM)admin Wrote: 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-development-protocol.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.

hi
Hello I haven't been able to arrange it , Huh 
There's a more detailed explanation option, and an example of a diagram where I put the TCP IN NODE and where I connect it
and where I config the - Feedback:RELAY-KEY-255,x,1,OK


RE: i need help how to use tcp feedback node to update relay state - admin - 11-13-2021

suggest use H32B, update by MQTT is best way.


RE: i need help how to use tcp feedback node to update relay state - Kross Piter - 09-16-2022

Do you maybe know other options?


RE: i need help how to use tcp feedback node to update relay state - admin - 09-16-2022

which product you are using?