KC-868 AIO - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-AIO (https://www.kincony.com/forum/forumdisplay.php?fid=46) +--- Thread: KC-868 AIO (/showthread.php?tid=6195) |
KC-868 AIO - ionutgd - 07-25-2024 Hi! I received my new AIO!!! Nice and fun. I managed to create the yaml file from your example All work fine but .... I have a curiosity. is a way to let say "map" digital input 1 to output 1? My scenario: I want to user "click" buttons to turn on the light, connected to a digital input. When I press the button 1/ digital input 1, I want taht output 1 to turn on. If the output 1 is on, when I press the button, I want that output 1 to turn off. I'm using Home Assistant. Thank You! Never mind!! I figured out ! binary_sensor: - platform: gpio name: "aio--input1" pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true on_press: then: - switch.toggle: aio_light1 switch: - platform: gpio name: "aio--light1" id: aio_light1 pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true Thank You! RE: KC-868 AIO - admin - 07-25-2024 yes, it's easy, good. |