A small status update on the smart meter reading project.
I have been running the solution above together with OpenLuup and Grafana and in general it works nicely. It has crashed on a few occations, not sure why.
This week I decided to test Home Assistant just to see how it works. When up and running I thought I could just as well try playing around a bit with the P1 meter reporting also.
I managed to set up Home Assistant to use the Mqtt broker on OpenLuup by adding this into the Configuration.yaml:
mqtt: broker: ipaddress port: 1883 username: user password: passwdAfter restarting HA it is easy to check that it works by going to the Mqtt integration where it you can listen to topics and publish packets on the server. Use MqttExplorer to see what happens on the server.
Next step is to add the sensors for the P1 meter data into the Configuration.yaml file, just to copy-paste from the github repo. To keep down the load I only added the sensors I use.
Then just create graphs etc on the dashboard.
0c431b29-f27c-4979-b598-88394a964d7f-bild.png
Since I had HA up and running I also decided to try out an ESPHome solution that is very popular in Sweden. I managed to install this on my second ESP and when connected to the meter it imediately started to report data into HA. No configuration required for this one, all sensors are added automatically, nice. 🙂
Next thing I wanted to test was the HA integration for grabbing hourly prices from Nordpool.
For this I discovered I needed to set up "HACS", a good instruction is here.
With this in place just add the Nordpool integration and restart.
Next step how to get some nice graphs? I found a good guide here.
9f1de0fe-0fac-4b39-b9ee-5bbe082ff070-bild.png
We will see what solution I will use, one possibility is to run both ESP's via a splitter on the meter.