as stated in my introduction post, I have build RoomClients that are serving one to three rooms. These read out some analog values and digital sensors, do PWM to control lights and read digital inputs.
All this is controlled by an Arduino Mega with an Ethernet shield and MQTT. Since I am struggeling with the Ethernet/MQTT part of the system for a long time, I would like to take a different approach.
Recently I got myself one of these:
An Mega with Mega pinning for compatibility with my boards and an ESP8266 for ESPHome, which is awesome.
But here is the catch. The Arduino port expander ESPHome lib does not work for me, since I need those digital sensors and PWM as well as the new board connects both controllers via RS232 instead of I2C.
I have recently compiled some self made code for an ESPHome sensor, so I am familiar with inserting self made code into an ESPHome configuration.
So much for the introduction. Here is my question:
Does anyone have a good tip on a Serial communication protol library that I can use? I need something reliable, easy to understand and code.
With the last project I did to get my self made code into ESPHome, I was not able to create more than one type of sensors from that code. So I have a lot of “Sensors” which give floats, but I was not able to create additional “binary sensors”. My workaround was to create more float sensors that now represents 1/0. I am guessing the error is infront of the keyboard, but maybe someone has a hint
That’s all folks,