From 79275f9a4cf8cbb7f562804e6d57a9dc5d414ce8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2020 21:43:47 +0100 Subject: [PATCH] Update zigbee-herdsman-converters to 12.0.222 (#4816) * Update zigbee-herdsman-converters to 12.0.222 * Update homeassistant.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Koen Kanters --- lib/extension/homeassistant.js | 46 ++-------------------------------- npm-shrinkwrap.json | 6 ++--- package.json | 2 +- 3 files changed, 6 insertions(+), 48 deletions(-) diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 84c662670..1033b1b31 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -450,22 +450,6 @@ const cfg = { icon: 'mdi:weight', }, }, - 'sensor_requested_brightness_level': { - type: 'sensor', - object_id: 'requested_brightness_level', - discovery_payload: { - value_template: '{{ value_json.requested_brightness_level }}', - icon: 'mdi:brightness-5', - }, - }, - 'sensor_requested_brightness_percent': { - type: 'sensor', - object_id: 'requested_brightness_percent', - discovery_payload: { - value_template: '{{ value_json.requested_brightness_percent }}', - icon: 'mdi:brightness-5', - }, - }, 'sensor_radioactive_events_per_minute': { type: 'sensor', object_id: 'radioactive_events_per_minute', @@ -751,7 +735,6 @@ const manualMaping = { switchEndpoint('left'), switchEndpoint('right'), cfg.sensor_click, cfg.sensor_action, cfg.sensor_temperature, ], 'MFKZQ01LM': [cfg.sensor_action, cfg.sensor_battery], - 'CC2530.ROUTER': [cfg.binary_sensor_led], 'ICTC-G-1': [cfg.sensor_brightness, cfg.sensor_battery, cfg.sensor_action], 'QBKG11LM': [cfg.switch, cfg.sensor_power, cfg.sensor_click, cfg.sensor_action, cfg.sensor_temperature], 'QBKG21LM': [cfg.switch, cfg.sensor_click, cfg.sensor_action], @@ -762,10 +745,6 @@ const manualMaping = { ], 'Z809A': [cfg.switch, cfg.sensor_power], '324131092621': [cfg.sensor_action, cfg.sensor_battery], - '9290012607': [ - cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_illuminance, cfg.sensor_illuminance_lux, - cfg.sensor_battery, - ], 'STSS-MULT-001': [cfg.binary_sensor_contact, cfg.sensor_battery], 'A6121': [cfg.sensor_lock], 'DJT11LM': [cfg.sensor_action, cfg.sensor_battery, cfg.sensor_sensitivity, cfg.sensor_strength], @@ -773,7 +752,6 @@ const manualMaping = { '4257050-ZHAC': [cfg.light_brightness, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage], 'STS-PRS-251': [cfg.binary_sensor_presence, cfg.sensor_battery], 'STSS-PRES-001': [cfg.binary_sensor_presence, cfg.sensor_battery], - 'TS0003_curtain_switch': [cfg.cover], 'AV2010/25': [cfg.switch, cfg.sensor_power], '1TST-EU': [climate(), cfg.sensor_battery], 'AIRAM-CTR.U': [], @@ -785,29 +763,16 @@ const manualMaping = { 'SPZB0001': [climate(5, 30, 'occupied_heating_setpoint', 0.5), cfg.sensor_battery], '81825': [cfg.sensor_action], 'E1743': [cfg.sensor_click, cfg.sensor_action, cfg.sensor_battery], - '9290019758': [ - cfg.binary_sensor_occupancy, cfg.sensor_temperature, - cfg.sensor_illuminance, cfg.sensor_illuminance_lux, cfg.sensor_battery, - ], 'ST218': [ climate(5, 30, 'occupied_heating_setpoint', 0.5), cfg.sensor_local_temperature, cfg.lock_keypad_lockout, ], - 'E1525/E1745': [ - cfg.binary_sensor_occupancy, cfg.sensor_battery, cfg.sensor_requested_brightness_level, - cfg.sensor_requested_brightness_percent, - ], 'ZYCT-202': [cfg.sensor_action], 'IM6001-BTP01': [cfg.sensor_click, cfg.sensor_action, cfg.sensor_temperature, cfg.sensor_battery], 'AV2010/34': [cfg.sensor_click, cfg.sensor_action], - 'PP-WHT-US': [ - cfg.switch, cfg.sensor_power, - cfg.sensor_current, cfg.sensor_voltage, - ], 'HGZB-1S': [cfg.switch, cfg.sensor_click, cfg.sensor_action], 'HGZB-045': [cfg.switch, cfg.sensor_click, cfg.sensor_action], - '3310-S': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery], 'SWO-KEF1PA': [cfg.sensor_action], 'HGZB-02S': [cfg.sensor_click, cfg.sensor_action, cfg.switch], 'HS1RC-N': [cfg.sensor_action, cfg.sensor_battery], @@ -830,7 +795,6 @@ const manualMaping = { cfg.sensor_action, cfg.binary_sensor_lock, cfg.binary_sensor_lock_reverse, ], '12050': [cfg.switch, cfg.sensor_power], - 'RH3040': [cfg.sensor_battery, cfg.binary_sensor_occupancy], 'LZL4BWHL01': [cfg.sensor_action], '2AJZ4KPKEY': [cfg.sensor_click, cfg.sensor_action, cfg.sensor_battery], 'TH1123ZB': [ @@ -912,7 +876,6 @@ const manualMaping = { 'HS2IRC': [cfg.sensor_battery], 'B01M7Y8BP9': [cfg.sensor_action], 'ZG2835RAC': [cfg.light_brightness, cfg.sensor_power, cfg.sensor_energy], - 'BW-IS3': [cfg.binary_sensor_occupancy], 'SLR1b': [climate()], 'TS0042': [cfg.sensor_action, cfg.sensor_battery], 'SNZB-01': [cfg.sensor_action, cfg.sensor_battery], @@ -925,12 +888,6 @@ const manualMaping = { '4512721': [cfg.sensor_action, cfg.sensor_battery], '4512702': [cfg.sensor_action, cfg.sensor_battery], 'HS1EB/HS1EB-E': [cfg.sensor_click, cfg.sensor_action, cfg.sensor_battery], - 'HS2SW1A/HS2SW1A-N': [cfg.switch, cfg.sensor_device_temperature], - 'HS2SW2A/HS2SW2A-N': [switchEndpoint('left'), switchEndpoint('right'), cfg.sensor_device_temperature], - 'HS2SW3A/HS2SW3A-N': [ - switchEndpoint('left'), switchEndpoint('right'), - switchEndpoint('center'), cfg.sensor_device_temperature, - ], 'ROB_200-007-0': [cfg.sensor_action, cfg.sensor_battery], 'GS361A-H04': [ cfg.lock_child_lock, @@ -1215,10 +1172,11 @@ class HomeAssistant extends Extension { voc: {icon: 'mdi:air-filter'}, aqi: {icon: 'mdi:air-filter'}, hcho: {icon: 'mdi:air-filter'}, + requested_brightness_level: {icon: 'mdi:brightness-5'}, + requested_brightness_percent: {icon: 'mdi:brightness-5'}, }; assert(!expose.endpoint, `Endpoint not supported for numeric type`); - assert(lookup[expose.name], `${expose.name} not in lookup`); discoveryEntry = { type: 'sensor', diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 33fdb31a8..d538c2c6b 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -14602,9 +14602,9 @@ } }, "zigbee-herdsman-converters": { - "version": "12.0.221", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.221.tgz", - "integrity": "sha512-EC+rDQN4XpUDfQ1WuIOCE0v2tktFiHLPEx8LOmXmKmFL1XjkEoIfmDpyxjq9aHRWNDmFEUG5xugog5Luh9gnQA==", + "version": "12.0.222", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.222.tgz", + "integrity": "sha512-hXSXB04vX0onzPWwEbkdpymlE/CKUHkdvm/WRxMswkTEEUDkBn31223UPdV/Q3bsuJYbaZyjFfrl+efkWy64sQ==", "requires": { "axios": "^0.21.0", "buffer-crc32": "^0.2.13", diff --git a/package.json b/package.json index 0b3deca67..e4080f5c7 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "winston-syslog": "^2.4.4", "ws": "^7.3.1", "zigbee-herdsman": "0.13.24", - "zigbee-herdsman-converters": "12.0.221", + "zigbee-herdsman-converters": "12.0.222", "zigbee2mqtt-frontend": "0.2.63" }, "devDependencies": {