From 63c0a962aef27f957aee6076cac4464b56071626 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Fri, 8 Jun 2018 20:34:34 +0200 Subject: [PATCH] Add ICTC-G-1 homeassistant mapping. --- lib/homeassistant.js | 11 +++++++++++ npm-shrinkwrap.json | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/homeassistant.js b/lib/homeassistant.js index ac5166b6a..47553e60d 100644 --- a/lib/homeassistant.js +++ b/lib/homeassistant.js @@ -127,6 +127,16 @@ const configurations = { json_attributes: ['battery', 'voltage', 'angle', 'side', 'from_side', 'to_side'], }, }, + 'sensor_brightness': { + type: 'sensor', + object_id: 'brightness', + discovery_payload: { + unit_of_measurement: 'brightness', + icon: 'mdi:brightness-5', + value_template: '{{ value_json.brightness }}', + json_attributes: [], + }, + }, // Light 'light_brightness_colortemp_xy': { @@ -246,6 +256,7 @@ const mapping = { '73742': [configurations.light_brightness_colortemp], '73740': [configurations.light_brightness_colortemp], '22670': [configurations.light_brightness], + 'ICTC-G-1': [configurations.sensor_brightness], }; // A map of all discoverd devices diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 308b70bc0..fc4af27ba 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -2810,9 +2810,9 @@ } }, "zigbee-shepherd-converters": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.0.tgz", - "integrity": "sha512-GtQKwU0AD7os51bPdFLcunGvSt7c2kxrwEf+szGInGFwA5hibVgoXvLhFA0t8C8bRlxqy2FcXQDblS6i8LogiA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.1.tgz", + "integrity": "sha512-tRDz0coiYcwILaJb1jIN4c3+OKP49MmYTClaNdW6fgTYKbJsjVou4PiJ7IX87LKBF+EnCp/d2K9gN2BNZ7xeuw==", "requires": { "debounce": "1.1.0" },