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.


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

1 Like

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!

Hi @Eternity

I am curious how you have created the virtual devices which are displaying the values. I managed to get the data from domoticz and put this in the variable, I am unable to show this on a virtual switch. I am using the VD app for this, but especially for gas there is no capability??? I am pretty new to this all :wink:

Any suggestions will be appriciated :wink:

Kind Regards,


When you create the VD, you have to type in the correct capability in the ‘text’ field.

See this topic (Dutch), and specifically the image shown!

and also were to look for all capabilities.

1 Like

Ohhhh… I was using gas_meter :wink: Thanks!!!

@Eternity One more question and then I’ll leave you alone :rofl:

In your example you can see the value on the “button” and in my case I have to hold button to see the value? Any specific settings I need to make to achieve this?

That’s because you see an image taken from Homeydash. Unfortunately in the official Athom dash, I can’t see the value either. I too have too push the button to see it.


It’s a pitty :smile: I will leave it like this! Thanks again…


A dirty way is to use a virtual termostat, when you copy your value to the target_temperature, it will be visible.

1 Like

@JPe4619 Really dirty, but it works :blush: The only thing is that you are limited (the maximum is the number 200 you can use, so converting to KwH works fine for me. Thanks


1 Like