Add support for Lonsonho switches (#3901)

* Add support for Lonsonho switches

* Use cfg.switch for 1 gang switch

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
Artyom DudarevandKoen Kanters authored and GitHub committed 2020-07-16 22:40:40 +02:00
1 parent ec688cfa04
commit 1223a06871
1 file changed
+2
+2
View File
@@ -1779,6 +1779,8 @@ const mapping = {
'HLC833-Z-SC': [cfg.light_brightness],
'5996411U5': [cfg.light_brightness_colortemp],
'LXN59-2S7LX1.0': [switchEndpoint('left'), switchEndpoint('right')],
'X711A': [cfg.switch],
'X712A': [switchEndpoint('l1'), switchEndpoint('l2')],
'TYZS1L': [cfg.light_brightness_colortemp_colorxy],
};