Use sensors with serial output
-
Hi,
I'd like to connect my Smart Meter to Domoticz. I thought about using an ESP32 as a gateway/sensor combination.
So. The ESP32 would have to run a serial port somehow which would receive the serial data from the smart meter
(just 9600 Baud) and at the same time act as a gateway in the Mysensors environment.
Is anyone aware of an example for that? I don't think I have to reinvent any wheels here. Life's shortChristoph
Edit: A MySensors node, connected to a nearby gateway would probably work just as well...
-
@hyla these meters produce a lot of serial data (at least for P1 protocol) which might be too much for mysensors if you just want to stream that data.
I'm using tasmota instead (wifi) and extract the data in node - red.
-
This is possible yes. In fact I used this setup before, but in the end I stopped using it and separated the gateway from the P1 handling. I noticed very high rates of CRC failures, since the mysensors stuff takes time to handle also, and during this time characters from the P1 port got lost. I should say though that after I separated these, I did some improvements on the P1 decoding which may give better results when it is being used together with the gateway. I didn't send it to mysensors but directly to mqtt.
Tasmota is also able to handle the P1 stream by the way, with a template. https://tasmota.github.io/docs/Smart-Meter-Interface/
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Is it possible to extract child ID from a just sent message?
General Discussion • 8 Nov 2021, 09:21 • Nigel31 22 days ago -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 25 days ago -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 11 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 23 days ago