Is anyone using ESP32 to read modbus data? Is it even possible?
Im now using Raspberry Pi and RS485 modbus dongle to receive data from my energymeter (Carlo Gavazzi EM24). Im wondering is there any way to do that same with ESP32 and ESPHome?
I found this, but i don’t know what can we do with that and how to use?
So it should be possible, it would be very nice to use ESPHome and ESP32 for this, but i have no idea where to start.
If someone has any idea, i would appreciate very much.
Try dropping a pull request on the esphome GitHub. That code is not old, probably being worked out by Otto. If a few of us pr it, maybe it’ll happen sooner rather than later.
I think I’m looking for pretty much the same thing but I’d like to communicate from Hass.io through ESP Home to my Car charger (rs485) to control the power draw.
Someone has done a great job reverse engineerin that in the TWS Manager project https://github.com/cdragon/TWCManager it should cointain all information necessary. However I’m not capable of utilizing that information to get going.
However the protocol does seem to be well documented in the heavily commented python code. Beyond that, pkease start another thread as it is off topic here
sorry @nickrout but I did not understand what you mean, explain in practice how can I configure esphome and which 2 gpio should I use to connect it to my rs458 modbus sdm230 counter
You can read easily up to 32 devices using Arduino MKR WiFi 1010 with MKR 485 shield. Use Arduino libraries for the Shield and PubSub library for MQTT.
Read holding registers and publish value to the corresponding topic.
Then just make MQTT Sensor in HA and subscribe.
I’m using it to read from pH and EC sensors through modbus. Works perfect.