Skip to content

koktaildotcom/com.p1.smartmeter-dsmr.reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homey p1 smartmeter DSMR reader for com.p1.smartmeter

Introduction

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.

Install dependencies

npm install

Get your Homey id

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]

Configure the /src/p1.js

Fill in the field: const homeyId = '[homeyId]' your homeyId

const homeyId = '[homeyId]'
/* becomes */
const homeyId = '1c1f4a7e3325c469fd8ad55'

Fill in the correct configuration

DSMR 2.2 and DSMR 3
const usbPort = '/dev/ttyUSB0'
const bps = 9600
const bits = 7;
const parity = 'even';
DSMR 4 and higher
const usbPort = '/dev/ttyUSB0'
const bps = 115200
const bits = 8;
const parity = 'none';

Run the program

node p1.js

You can use a process manager like pm2 to run the script on boot.

History

v1.0.0 - 08.12.2019

  • initial commit

v2.0.0 - 29-10-2020

  • fix bug and flip produced/consumed

Final note

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •