From f2ec895ec0d606f85342f6d1b729c618a1e59f6a Mon Sep 17 00:00:00 2001 From: Koenkk Date: Sat, 30 Jun 2018 09:48:21 +0200 Subject: [PATCH 1/3] Update zigbee-shepherd-converters to 2.0.19. https://github.com/Koenkk/zigbee2mqtt/issues/154#issuecomment-401495951 --- lib/homeassistant.js | 3 ++- npm-shrinkwrap.json | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/lib/homeassistant.js b/lib/homeassistant.js index ca981ffd1..f0236fb05 100644 --- a/lib/homeassistant.js +++ b/lib/homeassistant.js @@ -115,7 +115,7 @@ const configurations = { unit_of_measurement: 'Watt', icon: 'mdi:flash', value_template: '{{ value_json.power }}', - json_attributes: ['voltage', 'temperature', 'consumption'], + json_attributes: ['voltage', 'temperature', 'consumption', 'current', 'power_factor'], }, }, 'sensor_action': { @@ -284,6 +284,7 @@ const mapping = { 'K2RGBW01': [configurations.light_brightness_colortemp_xy], '9290011370': [configurations.light_brightness], 'DNCKATSW001': [configurations.switch], + 'Z809A': [configurations.switch, configurations.sensor_power], }; // A map of all discoverd devices diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index af1f8de8b..bd36f6bf3 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -295,9 +295,9 @@ "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=" }, "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==" + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz", + "integrity": "sha512-sVXqklSaotK9at437sFlFpyOcJonxe0yST/AG9DkQKUdIE6IqGIMv4SfAQSKaJbSdVEJYItASCrBiVQHq1HQew==" }, "commist": { "version": "1.0.0", @@ -1171,9 +1171,9 @@ } }, "mqtt": { - "version": "2.18.1", - "resolved": "https://registry.npmjs.org/mqtt/-/mqtt-2.18.1.tgz", - "integrity": "sha512-p+RIMFsNb5z65/dy5beKgTnycd3+N8gQ+E2Jnx+0g0OoRza/LCXtUp/vEb3mgWJdljTU+5n4Lc3h0ya994zmVg==", + "version": "2.18.2", + "resolved": "https://registry.npmjs.org/mqtt/-/mqtt-2.18.2.tgz", + "integrity": "sha512-egP6gbLES2aELu6LNtwOtpC779Hu7LVTYm6HKE5wJdTuX2jZ4JOOtK7HS2JWyW6IfKN5U99u/VU155tLwFAKbQ==", "requires": { "commist": "1.0.0", "concat-stream": "1.6.2", @@ -1561,7 +1561,7 @@ "integrity": "sha1-QhxhiophK9QM+kYbSkYVTa8iKaU=", "requires": { "bindings": "1.2.1", - "commander": "2.15.1", + "commander": "2.16.0", "debug": "2.6.9", "lie": "3.3.0", "nan": "2.10.0", @@ -1879,7 +1879,7 @@ "bundled": true, "requires": { "chalk": "1.1.3", - "commander": "2.15.1", + "commander": "2.16.0", "is-my-json-valid": "2.15.0", "pinkie-promise": "2.0.1" }, @@ -2861,9 +2861,9 @@ } }, "zigbee-shepherd-converters": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.18.tgz", - "integrity": "sha512-E9Uq6q2jAZOt7oTi4uBa6yzNOD45K/wJs8RUnIAYXPXF4gx3PWKXUqHzJLgkUIsy1XQpIiwtSSu49et9hpC1nQ==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.19.tgz", + "integrity": "sha512-h+TdTaMEnq9lMc82g3tYxVRASL8P75gKJxoVm2noK1zzLdvfWy5y1gnR9lOdimY9X1aTx8dCKVGNJ8nj2U2fqQ==", "requires": { "debounce": "1.1.0" }, From a15dcf83450b52fb3af304e31dd500c5c8d9b165 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Sat, 30 Jun 2018 09:54:23 +0200 Subject: [PATCH 2/3] Add stale bot. --- .github/stale.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 000000000..73d7684a6 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - enhancement + - bug +# Label to use when marking an issue as stale +staleLabel: wontfix +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false \ No newline at end of file From 8f45de6a3f711a76ba4aedc734689452a5d71913 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Sat, 30 Jun 2018 09:55:13 +0200 Subject: [PATCH 3/3] Stale bot use stale label. --- .github/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/stale.yml b/.github/stale.yml index 73d7684a6..fd7522287 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -7,7 +7,7 @@ exemptLabels: - enhancement - bug # Label to use when marking an issue as stale -staleLabel: wontfix +staleLabel: stale # Comment to post when marking an issue as stale. Set to `false` to disable markComment: > This issue has been automatically marked as stale because it has not had