Can A1 to A4 used as buttons too? - 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-E16S/E16P (https://www.kincony.com/forum/forumdisplay.php?fid=26) +--- Thread: Can A1 to A4 used as buttons too? (/showthread.php?tid=2504) |
Can A1 to A4 used as buttons too? - exico - 01-08-2023 Hello, I'm going to buy a couple of these boards for a new house but I'd like to know if the connectors A1 to A4 can be used to attach more switches/buttons. I will use ESPHOME and connect the boards to Home Assistant. These extra buttons would be nice to have for activating automations. In the schematics the connectors are attached to pin 36, 35, 34 and 39. Searches on google tells me that it might work but I'd like a confirmation from who built the board Thank you RE: Can A1 to A4 used as buttons too? - admin - 01-09-2023 sure, if you want analog input port use for button, no problem, if you want let output different voltage, so you can add many button by one GPIO. because different voltage output means different button pressed. RE: Can A1 to A4 used as buttons too? - exico - 01-31-2023 (01-09-2023, 12:43 AM)admin Wrote: sure, if you want analog input port use for button, no problem, if you want let output different voltage, so you can add many button by one GPIO. because different voltage output means different button pressed. Hello, I received the boards. I tried to connect A1 to ground and use it as another input but that does not work. Can you please provide me an example? I'm using esphome RE: Can A1 to A4 used as buttons too? - admin - 01-31-2023 if use analog input trigger output, you need to create config. how about your ESPHome ymal file? you can list at here. RE: Can A1 to A4 used as buttons too? - exico - 02-01-2023 I can, but its over 1200 lines. It includes single click, multi click and long click for every input that can later be configured in home assistant. For now i tried this: Code: - platform: gpio This works with the normal inputs but not with A1 to A4 Since i do not want to damage the board, can you explain how to wire it to a button? Do i have to use Analog Threshold Binary Sensor https://esphome.io/components/binary_sensor/analog_threshold.html instead of a normal gpio platform? Thank you RE: Can A1 to A4 used as buttons too? - admin - 02-02-2023 yes, you are right, you can use Analog Threshold Binary Sensor in ESPHome. You can connect a extend power supply, such as 3V, then set the "threshold:2.0" or other value, just means: when analog input > xx.xx v = ON RE: Can A1 to A4 used as buttons too? - exico - 02-02-2023 Make sense. Instead of using another power supply can i use the 12v provided to the board or is too much? RE: Can A1 to A4 used as buttons too? - admin - 02-02-2023 analog input MAX 5V, if connect with 12v will be bad. you can connect power supply <=5V is ok. |