From ff9e6cdacce5b4b5c32b9e634f88b914fd6c6892 Mon Sep 17 00:00:00 2001 From: Tommy Goode Date: Sat, 19 Oct 2019 03:32:39 -0500 Subject: [PATCH] Improve support for MCT-340 E, MCT-340 SMA, XHS2-SE (#2156) * Add temperature and battery level reporting for Visonic MCT-340 E contact sensor. * Improve HA sensors for MCT-340 SMA and XHS2-SE. --- lib/extension/homeassistant.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 6afc22497..55b0bfd70 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -777,7 +777,8 @@ const mapping = { cfg.binary_sensor_carbon_monoxide, cfg.binary_sensor_battery_low, cfg.sensor_battery, ], - 'MCT-340 E': [cfg.binary_sensor_contact], + 'MCT-340 E': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery], + 'MCT-340 SMA': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery], 'D1542': [cfg.light_brightness_colortemp], 'ZGRC-KEY-013': [cfg.sensor_click], 'ZigUP': [cfg.switch], @@ -916,12 +917,11 @@ const mapping = { 'T1829': [cfg.light_brightness_colortemp], '929002240401': [cfg.switch], 'HGZB-20-UK': [cfg.switch], - 'MCT-340 SMA': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low], 'PTAPT-WH02': [cfg.switch], '929001953301': [cfg.light_brightness_colortemp], 'DIYRuZ_magnet': [cfg.binary_sensor_contact, cfg.sensor_battery], 'ZLED-TUNE9': [cfg.light_brightness_colortemp], - 'XHS2-SE': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low], + 'XHS2-SE': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery], '4000116784070': [cfg.switch], '9290020399': [cfg.light_brightness], '929002241201': [cfg.light_brightness],