Skip to content

Commit

Permalink
Merge pull request #24 from Thorarin/bugfix/humidity-reporting
Browse files Browse the repository at this point in the history
Bugfix for humidity reporting
  • Loading branch information
Thorarin authored Jan 4, 2020
2 parents 8e6b05f + ee80678 commit 7da827e
Show file tree
Hide file tree
Showing 12 changed files with 167 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/node_modules/homey-zwavedriver/.npmignore
/env.json
/.vscode
/*.png
4 changes: 2 additions & 2 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"2.1.0": {
"en": "Fixed an issue with Strips Comfort heat alarm (thanks Vegard!)\r\nAdded maintenance actions to reset alarms manually (requires Homey 3.1+)\r\nAdded battery information for all supported devices"
"2.1.2": {
"en": "Fixed an issue with Strips Comfort heat alarm.\r\nFixed an issue with humidity reporting for Strips Drip.\r\nAdded maintenance actions to reset alarms manually.\r\nAdded battery information for all supported devices."
},
"2.0.1": {
"en": "Fixed a number of issues with Strips Drip and Strips Comfort"
Expand Down
4 changes: 4 additions & 0 deletions .homeyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules/homey-meshdriver/examples
/node_modules/homey-meshdriver/lib/zigbee
*.psd
/*.png
55 changes: 0 additions & 55 deletions app.clean.json

This file was deleted.

2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"large": "/assets/images/large.png",
"small": "/assets/images/small.png"
},
"version": "2.1.0",
"version": "2.1.2",
"compatibility": ">=1.5.6",
"tags": {
"en": [
Expand Down
Binary file added assets/images/banner.psd
Binary file not shown.
6 changes: 6 additions & 0 deletions drivers/1102011/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class StripsMultiSensor extends StripsZwaveDevice {
});

this.registerCapability('measure_humidity', 'SENSOR_MULTILEVEL', {
reportParser: report => {
if (report['Sensor Type'] === 'Moisture (v5)') {
return report['Sensor Value (Parsed)'];
}
return null;
},
getOpts: {
getOnOnline: true,
},
Expand Down
18 changes: 18 additions & 0 deletions node_modules/.bin/raven.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions node_modules/.bin/uuid.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions node_modules/homey-meshdriver/.editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7da827e

Please sign in to comment.