Homey Community Forum

Report your P1 smart meter data - my solution

Just thought I’d share my flows; perhaps it will inspire someone to do something similar.

My gas and electricity data is loaded into Domoticz (running on a Synology NAS) with a P1 cable. This data is queried by Homey every 15 minutes with this flow:

(and a similar flow to collect the gas data).
The extra card gets the data for the tiles in Homey Dash:

Schermafbeelding 2020-09-04 om 14.31.44

At the end of every day the total gas and electricity usage is posted as a notification in Homey and a push message to my phone:

And after that has been done, the last flow runs to reset the variables to zero:

Check the calculations; I have created variables in Better Logic so I only have to update my actual gas and electricity price within the Better Logic App (and not in the flows). Also, all outcome is rounded to two decimals with the round() function.

2 Likes

What interface do you use for connecting the p1 to your NAS?

Nice will keep this is mind. Just ordered a p1 cable and will attach it to a RAspberry Pi with Ztatz. Nice project for the upcoming weeks.

A “smart meter P1 usb to rj12 cable”, which has some electronics in it to read data from the “smart meter”. They are available for around € 12,00

Ordered in in China for € 8,62🙀Reviews were good, so hope it works ok. Will try to get the data with MQTT in Homey. But still have to figure out how MQTT exactly works. Have MQTT now running on my NAS. Testing this was waiting for the cable. Cable will arrive today. So hope i figure it out next week(or weeks😿)

Also still working on a script for my SolarPanels. Would be nice to combine all these data

Would like to see that work! Good luck!