HGZB-44 HomeAssistant Autodiscovery support (#3775)

* Add homeassistant autodiscovery support for HGZB-44.

* Fix missing , at end of line

* Update homeassistant.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
Krzysztof 2020-06-20 22:25:57 +10:00 committed by Koen Kanters
parent 76745ca5c3
commit 1dd002e73f

View File

@ -1076,6 +1076,10 @@ const mapping = {
'9290018195': [cfg.light_brightness],
'HGZB-04D / HGZB-4D-UK': [cfg.light_brightness],
'HGZB-043': [switchEndpoint('top'), switchEndpoint('bottom'), switchEndpoint('center')],
'HGZB-44': [
switchEndpoint('top_left'), switchEndpoint('top_right'), switchEndpoint('bottom_left'),
switchEndpoint('bottom_right'),
],
'NCZ-3043-HA': [
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
cfg.sensor_battery, cfg.binary_sensor_battery_low,