Homey p1 smartmeter DSMR reader for com.p1.smartmeter
This package can be used to post data about usage gas and received/delivered electricity to the homey app com.p1.smartmeter And it is based on the node-dsmr library.
npm install
1: Goto: http://developer.athom.com
2: Login into Homey
3: Open the inspector (chrome f12)
4: Click the network
tab
5: Refresh the page (you see couple of webpages being called)
6: Copy the homeyId
from the url: https://[localId].homey.homeylocal.com/api/manager/system/ping?id=[homeyId]
Fill in the field: const homeyId = '[homeyId]' your homeyId
const homeyId = '[homeyId]'
/* becomes */
const homeyId = '1c1f4a7e3325c469fd8ad55'
const usbPort = '/dev/ttyUSB0'
const bps = 9600
const bits = 7;
const parity = 'even';
const usbPort = '/dev/ttyUSB0'
const bps = 115200
const bits = 8;
const parity = 'none';
node p1.js
You can use a process manager like pm2
to run the script on boot.
- initial commit
- fix bug and flip produced/consumed
The repository is available at: https://github.com/koktaildotcom/com.p1.smartmeter-dsmr.reader
Do you like the app? You can make me happy by buying me a beer!