Skip to content

Commit

Permalink
Improve support for MCT-340 E, MCT-340 SMA, XHS2-SE (#2156)
Browse files Browse the repository at this point in the history
* Add temperature and battery level reporting for Visonic MCT-340 E contact sensor.

* Improve HA sensors for MCT-340 SMA and XHS2-SE.
  • Loading branch information
airdrummingfool authored and Koenkk committed Oct 19, 2019
1 parent f219e5d commit ff9e6cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/extension/homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit ff9e6cd

Please sign in to comment.