Skip to content

Commit

Permalink
Add HPHC rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain DUBOC committed Apr 4, 2017
1 parent 1630233 commit bc70989
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ TeleinfoAccessory = function(log, config) {
if(data.BASE) {
that.energy.updateValue(data.BASE/1000);
}
if(data.HCHP && data.HCHC) {
that.energy.updateValue((data.HCHP+data.HCHC)/1000);
}
});

trameEvents.on('error', function (err) {
log(err);
if(err.message != 'Trame incomplete')
log(err.message);
});
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-teleinfo",
"version": "0.0.2",
"version": "0.0.3",
"description": "Homebridge plugin for Teleinfo USB/Serial device",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit bc70989

Please sign in to comment.