Hi, I like to send different triggers to home assistant depending on what serial input code a esp32 or esp8266 gets. So, every serial input code generate a corresponding trigger in home assistant. I like to make it in esphome , is that possible?
Are there some samples where I can see how to start?
Thanks.
Of course you can handle serial commands feedback in ESPHome but you’ll have to use lambdas which is really not easy to code ! What device are you controling ?
Did you get a look at that page ? UART Bus — ESPHome
I like to make a bus system around my house that is connected with wall push buttons. So in the living I like 3 times a 6 gang push buttons panel. Every button sends a serial code to a esp32/8266 that generates, depending on the code, a trigger in home assistant.
I have now a zigbee system, but have interference problems. I changed the channels already from low to middle to high number, but always with problems.
The serial code, comes from an arduino or attiny85 and send it with a open collector transistor to the serial input of the esp32 or to the raspberry pi. We never pushes 2 buttons at the same time. so collision is no problem.
I never used the hardware ports on the raspberry pi with home assistant. That’s new for me.
Ok, I was thinking to make a trigger, but I’m new to that subject and don’t know where to start and where the final end could be.
So, my goal is, I push a button, a unique serial code for that button is sent to a esp32 that is sending ??? ( something ) to home assistant thats start an automation.