Ideally the reset line for the Wiznet chip would be removed from the reset button and connected to an Arduino pin so you can reset the Wiznet problematically. The reset issue posted above is common (though I’ve never experienced it). There are a lot of cheap Ethernet shields out there and lots of them have issues. If you post your Arduino code it might be possible to spot the problem. If you are getting connection issues then it likely is an issue with the Ethernet shield you are using, or a code problem. Instructions for setting up Custom C++ sensors with ESPHome. So my goto is as mentioned having ESPHome do the communication and WLan stuff while my code is implemented like this: ESPHome Custom Sensor Component I have programmed a lot on microcontrollers and low level protocols to be able to get the RS232 part stable and/or debug it. Therefore I would like to stick to ESPHome. I am fairly good at C/C++ but I never worked with python. Therefore I am expecting a lot less problems on that side. So I do trust that the ESPHome Ethernet and HomeAssistantCommunicationProtocol side is build by more and a lot better programmers than I am. But: I have roughly 20 ESP’s with ESPHome running happily in my home automation without any major trouble. You might be right, I might just exchange one problem set with another. I have a feeling that the Ethernet shield is not made for 24/7 connectability. I checked the Ethernet and MQTT examples a lot of times, making sure there is no user error. With my limited debugging possibilities, I was not able to track down the problem. Then It reconnects to the DHCP and MQTT Server and is up and running again. The only thing that helps is resetting the Arduinos and Ethernet Shields. So my issue with the existing setup is that I get random connection losses. I am guessing the error is infront of the keyboard, but maybe someone has a hint My workaround was to create more float sensors that now represents 1/0. So I have a lot of “Sensors” which give floats, but I was not able to create additional “binary sensors”. 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. Here is my question:ĭoes anyone have a good tip on a Serial communication protol library that I can use? I need something reliable, easy to understand and code. 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. 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. An Mega with Mega pinning for compatibility with my boards and an ESP8266 for ESPHome, which is awesome.īut here is the catch.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |