I just got a PRO380 to measure energy from my solar panels from my Neuron device. Since I don't want to run (learn ;-)) NodeRed and there is no turn key solution for native integration of the MOD380 in Evok I searched the internet and found this; https://github.com/volkszaehler/mbmd
This spins up a webserver with API and MQTT / InfluxDB integration for different energy meter including the PRO380. Works like a charm for me.
Some steps I did;
- Connect the meter to a RS485 port on the Unipi and enable the dip-switch
- Make sure that for that particular RS485 port there is no config in /etc/evok.conf (So yes, you need a unused / free port). When I had the port configured in the conf file I did not work, presumably because Evok is intercepting the traffic)
- Download the pre-compiled binaries from GitHub and extract as documented
- Perform a scan over modbus to see if your device is found with the command
/usr/local/bin/mbmd scan --rtu -v --raw --comset 8E1 -a /dev/ttyNS1 . Note that ttyNS1 is my SECOND port on my device (2.01). Adjust this as needed for your device.
My Output was the following (I changed the ID of the PRO380 to 5 on the device:
2020/11/25 09:47:52 config: creating RTU connection for /dev/ttyNS1 (9600baud, 8E1)
2020/11/25 09:47:52 starting bus scan on /dev/ttyNS1
2020/11/25 09:47:56 device 1: n/a
2020/11/25 09:48:00 device 2: n/a
2020/11/25 09:48:04 device 3: n/a
2020/11/25 09:48:08 device 4: n/a
2020/11/25 09:48:10 device 5: INEPRO type device found, VoltageL1: 239.90
- Start the webserver with the command
/usr/local/bin/mbmd run --rtu --comset 8E1 -a /dev/ttyNS1 -d INEPRO:5 --mqtt-broker tcp://18.104.22.168:1883 --api 0.0.0.0:1380. Also make sure you adjust the ttyNS port numer. As example I included a MQTT broker IP. Please read the docs for further config or InfluxDB integration.
Do Note that I redirect the webserver port to 1380 because 8080 is already in use. Go to the IP of your Neuron device on port 1380 and see what happens. I see the information coming up nicely. :-). There are API possibilities too to extract data, or push via MQTT or InfluxDB.
If this is what you want to keep, set up a service to start with your device, how to is also in the docs.
Perhaps this helps someone. It fairly easy to use. :-)