Homey Community

P1 smartmeter (API)


#1

P1 smartmeter

NOTE: This app doesn’t get information out of the smartmeter, you have to use an external service that push data to the the app.

Introduction

This app adds the P1 smartmeter into Homey and add an api to update the data.

Usage

  1. Install the app com.p1.smartmeter .
  2. Add device p1 smartmeter .
  3. Use the endpoint /update to push data to Homey.

Endpoint

POST: /update

body:

   {
       "electricity": {
           "delivered": {
               "tariff2": {
                   "reading": 0,
                   "unit": "kWh"
               },
               "actual": {
                   "reading": 0,
                   "unit": "kW"
               },
               "tariff1": {
                   "reading": 0,
                   "unit": "kWh"
               }
           },
           "received": {
               "tariff2": {
                   "reading": 0,
                   "unit": "kWh"
               },
               "actual": {
                   "reading": 0,
                   "unit": "kW"
               },
               "tariff1": {
                   "reading": 0,
                   "unit": "kWh"
               }
           }
       },
       "gas": {
           "reading": 0,
           "unit": "m3"
       }
   }

Another developer ask the community for support
#2

Its currently in review for beta release


#3

Nice!
Can you give an example of the setup of this external service? What did you implement at home?


#4

I use a ‘Raspberry Pi 1 Model B+’ with an p1 cable (there are types for different smartmeters) and a Mini Wireless USB WiFi Adapter (RP1 comes without wifi).

Because there are different smart meters and different versions of data they transmit there isn’t one implementation. I use a python script that i found online and push the data with a POST to the app.


#5

Hi,
will try your app in a few days, next friday my meter will be replaced by a P1 smart meter.
I have built a small circuit to connect the smart-meter to an esp8266 device running tasmota with serial-bridge configured. My hope/goal is to use this setup to push the P1 serial messages via mqtt to Homey, or to my Domoticz server as an alternative.


Energy (electricity & gas) generic app
#6

I’ve just published the app in beta!


#7

Hi Koktail,
i’ve had a quick look at your app, but sadly I think this does not really fit with my setup :frowning:
I have a simple esp8266 device running espeasy, which passes the full p1 telegram via ser2net, it does not parse the telegram or something similar. I was hoping for an app that would do the parsing on Homey, similar to what I currently use on HAssIO, or before on Domoticz, both running on raspberri pi.


#8

Bummer, too bad that it does not meet your expectations. You can try to export the data from either hassio or domaticz (if they have the possibility to export data trough an REST api)


#9

Did you made this working?


#10

For Domoticz @herrieman could use Domoticz app


#11

@Jeroen_Somhorst, sadly I’m currently on HassIO, Domoticz was not very stable (crashed every other day) so last weekend I switched to HassIO and I must say that it looks pretty nice compared to Domoticz (or even Homey…).
The setup with ESP8266 connected to the P1 meter however does need some modifications, the wifi on that module is not very stable so the connection is lost every now and then, and as a result the energy data has some gaps…
I will check if a beefier controller (e.g. another raspi) connected to the P1 meter would be better, I then could also use the setup with your app @Koktail, will update my results.


#12

I use multiple ESP8266’s around the house and never had any issues with that.