From 2e736bf501f56a7838749629e014cc99569fd7c8 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Wed, 31 Oct 2018 17:10:28 +0100 Subject: [PATCH] Update zigbee-shepherd-converters to 4.0.11 --- lib/homeassistant.js | 12 ++++++++++++ npm-shrinkwrap.json | 6 +++--- package.json | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/lib/homeassistant.js b/lib/homeassistant.js index fb022c63..b224a068 100644 --- a/lib/homeassistant.js +++ b/lib/homeassistant.js @@ -13,6 +13,17 @@ const configurations = { json_attributes: ['battery', 'voltage'], }, }, + 'binary_sensor_presence': { + type: 'binary_sensor', + object_id: 'presence', + discovery_payload: { + payload_on: true, + payload_off: false, + value_template: '{{ value_json.presence }}', + device_class: 'presence', + json_attributes: ['battery', 'voltage', 'action'], + }, + }, 'binary_sensor_contact': { type: 'binary_sensor', object_id: 'contact', @@ -361,6 +372,7 @@ const mapping = { 'MG-AUWS01': [switchWithPostfix('left'), switchWithPostfix('right')], '9290002579A': [configurations.light_brightness_colortemp_xy], '4256251-RZHAC': [configurations.switch, configurations.sensor_power], + 'STS-PRS-251': [configurations.binary_sensor_presence], }; // A map of all discoverd devices diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index b74b3e76..c7263d44 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -4762,9 +4762,9 @@ } }, "zigbee-shepherd-converters": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-4.0.10.tgz", - "integrity": "sha512-qF0JTvvr3GJ7lM620g9A1hVDykHx8yVtEG3tcZXFjm0qUf+xo+qG/QLHkmg5ptrOJ5vVMgDC6JmctJiR6BHW0g==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-4.0.11.tgz", + "integrity": "sha512-YkccMLHCIM6C/rA95sAJt1eFHplUtDgMiZjrZZV/gHvtpNMF1N4Pcn2oVyucUfqHT6Vtgbu8+HXK3qSiLWmhVg==", "requires": { "debounce": "*" }, diff --git a/package.json b/package.json index 3af5b18a..d2b15c10 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "winston": "2.4.2", "zcl-packet": "git+https://github.com/Koenkk/zcl-packet.git#fbd8c936bbd4be0597ad3e934be0ca722b0128a6", "zigbee-shepherd": "git+https://github.com/Koenkk/zigbee-shepherd.git#c3fdef2c30267573aa5821a0f2c51f21a700eff2", - "zigbee-shepherd-converters": "4.0.10" + "zigbee-shepherd-converters": "4.0.11" }, "devDependencies": { "chai": "*",