A lot of people in the Netherlands have a smartenergy meter. They send the total usage to the power network provider on a regular interval. But is also has a port that can be used to monitor the usage yourself, and this can be really interesting.
Hardware needed
- A P1 cable to read the data, I’m using this one.
- A Raspberry Pi (or similar) device
- SD card with some OS for your pi
Software
You can use whatever software you want to read the data from the meter. The cable above just creates a serial device (over USB). So you should be able to read in from the console.
I’m however using Smartmeter2mqtt (build myself). It gives you a nice dashboard for checking the actual status and provides a lot of other outputs, like a tcp socket (with parsed or unparsed data), a json endpoint on the webserver and allows you to http post the data to some other system for futher save keeping. It also has a mqtt output that will post the data to your MQTT server.
Dashboard

The dashboard used websockets to automatically update the data the moment it arrives. The image will change depending on if you’re send electricity to the grid or using electricity from the grid.
The switch will change depending on the current tarrif. Switched automatically by the grid provider.
Notifications
Currently I’m just using the dashboard to check the current usage. This allows me to see wheter the fryer has finished heating up. I’m planning to make notifications based on changes in current usages. For instance if I turn on the fryer, the usage goes up with 1786 Watt, it is done heating if it goes down by that amount.
Anyone got any ideas on what you could build with that knowlage?
I was thinking about notifications when the washmachine is finished washing, or something like that.
Or maybe notify us we left some device on when we are leaving the house (like curling-iron, fryer or something like that).
Solar panels, turn on devices
I’m even planning on turning on devices if we produce a lot of energy. In the screenshot you can see we are currently delivering 1081 watt to the grid. So we could also instruct the washing machine to start laundry right now, but that would require a connect washing machine. So future plans.
Hallo Stephan,
Naar aanleiding van een discussie hier over routed IPTV krijg ik ook notificaties van andere posts. Deze smart energy meter leek me wel handig, ik heb een Pi in de meterkast die nu met ser2net de gegevens aan Domoticz doorgeeft. Aangezien jouw oplossing ook een netserver aan boord had zou ik de verbinding misschien kunnen vervangen en Domoticz ook kunnen blijven gebruiken.
Daarbij heb ik een tweetal opmerkingen. Ten eerste een foutje in je README.md in de root. Daar staat bij handmatig draaien:
Install npm i -g smartmerter2mqtt –production
Dit moet smartmeter2mqtt zijn (er staat een r te veel in), bij die-hard copypaste werk geeft dat wat foutmeldingen
Ten tweede als ik de tool wil starten, krijg ik een exception uit de bindings.js file dat de bindings file niet gevonden kan worden (bindings.node). Deze file kan ik ook nergens op het systeem vinden. Any ideas?
Mvg,
Gerco
Ik heb de typfout gefixt, in mijn code staat nergens een binding.js file. Heb je anders een voorbeeld van de foutmelding die je krijgt?
Hmm.. never mind.. ik had wat zitten prutsen omdat er een Node 10.15.2 compatibiliteitsdingetje werd gemeld bij het installeren. Dat hersteld en daarna werkt het.