Smart Home Automation Forum
Kc868-A128 interlock - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-HxB series Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=2)
+--- Thread: Kc868-A128 interlock (/showthread.php?tid=4635)



Kc868-A128 interlock - ahmedwizza1 - 02-24-2024

Hello ingneer 

I have KC868-A128 esp

I used esp protocol 

But we need to make interlock fo curtains and shutters.. 
 Can you give me the code for this operation 
 To add it to me esp config in home assistant 


???????


RE: Kc868-A128 interlock - admin - 02-24-2024

do you use ESPHome or KCS firmware?
if you use ESPHome, just config interlock in yaml, for example:

- platform: gpio
name: "curtain2-up"
id: relay7
interlock: [relay8]
pin:
pcf8574: pcf8574_hub_out_1
number: 6
mode: OUTPUT
inverted: true


- platform: gpio
name: "curtain2-down"
id: relay8
interlock: [relay7]
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: true