Anybody have experience building custom components/switches?
Posted: Fri Apr 29, 2022 1:10 am
I'm struggling big time trying to get the Atlas Scientific EZO Peristaltic pumps to work in Home Assistant/ESPHome because the EZO circuits are only set up to be sensors and not switches. Scouring these forums I see people have talked about the pumps but I couldn't find a resolution anywhere.
I'm thinking a custom switch needs to be made in ESPHome but I've been studying the instructions from ESPHome and trying all day to write a code that works with no luck...
All that I believe is needed is a custom switch component that can operate from an i2c address. From there it should populate as an entity you can turn on and off, and then create the automation from there with ease. Does anyone know how to do this? It involves creating a C++ file and then referencing that file in the ESPHome config yaml for the device you're wanting to use it.
Thank you Thank you Thank you!!
I'm thinking a custom switch needs to be made in ESPHome but I've been studying the instructions from ESPHome and trying all day to write a code that works with no luck...
All that I believe is needed is a custom switch component that can operate from an i2c address. From there it should populate as an entity you can turn on and off, and then create the automation from there with ease. Does anyone know how to do this? It involves creating a C++ file and then referencing that file in the ESPHome config yaml for the device you're wanting to use it.
Thank you Thank you Thank you!!