NOTE: This app doesn't get information out of the
smartmeter
, you have to use an device (a raspberry pi for example) that push data to the app.
This app adds the P1 smartmeter into Homey and add an api to update the data.
The repository https://github.com/koktaildotcom/com.p1.smartmeter-dsmr.reader
reads the data from the p1 and push it to the com.p1.smartmeter
api.
- A working internet connection.
- A serial (usb) connection with the p1 port of the p1 smartmeter.
- Power.
- Cli access to the device.
NOTE: This example is for DSMR 4.0 supported devices.
- Install the script
https://github.com/koktaildotcom/com.p1.smartmeter-dsmr.reader
on the device connected to the serial p1. - Run
npm install
- Change the
HomeyId
as described insrc/p1.js
. - Change the
config.serialPort
for your situation (you should check your smartmeter or google around..) - Run the script by calling:
node src/p1.js
- Install the script
https://gist.github.com/steffjenl/31bd083eeb9d0be04375b7695b9f2eaf
as plugin for DSM-Reader. - More information about installing plugin's can be found on
https://dsmr-reader.readthedocs.io/nl/v3/plugins.html
- Change the
HOMEY_ID
as described inforward_raw_telegram_to_api.py
. - Execute as user dsmr in the dsmr directory
./post-deploy.sh
- Install the app
com.p1.smartmeter
. - Add device
p1 smartmeter
. - Use the package
com.p1.smartmeter-dsmr.reader
to push datacom.p1.smartmeter
's endpoint/update
or/update/dsmrreader
.
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"
}
}
body:
{
"telegram": "RAW TELEGRAM MESSAGE"
}
- initial commit
- add brandcolor and community topic id
- add repository description for DSMR 4.0
- update current gas usage once per hour
- Add support for Homey v3 Energy
- Added capability as it is needed for the power overview
- Hide total consumed/generated from device sensor overview
- Add new p1 smartmeter implementation to work with the new com.p1.smartmeter-dsmr.reader
- Make the old p1-smartmeter deprecated
- Bump version because of rejecting in store
- Add endpoint for raw telegram messages
- Fixed translation issues #15
- Removed deprecated driver
p1-smartmeter
. - Fixed power consumed missing #19
- Update to SDK 3
- Update dependencies
- Fix removing gas meters
- Improve dsmrreader with reportedPeriod, timestamp and switched electricity
- Calculate gas per hour with timestamp and reportedPeriod from dsmr
- bugfix missing L1, L2, L3
- bugfix upgrade dsmr reader
The repository is available at: https://github.com/koktaildotcom/com.p1.smartmeter