Просмотр исходного кода

Desk lamp: Don't use color_mode dp to set color mode.

This device only supports one mode, and additionally seems to report
strings like "Breathe" rather than the documented "white".  Change it
to an extra-attribute called work_mode instead.

- add docs for this device.

PR #571
Jason Rumney 2 лет назад
Родитель
Сommit
fdd31437ae
3 измененных файлов с 3 добавлено и 4 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 1 4
      custom_components/tuya_local/devices/desk_lamp.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -226,3 +226,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer, Lepro lights (variant of RGBCW light without timer) and Yieryi pH meter.
 - [theshop35](https://github.com/theshop35) for assisting with support for CC curtains.
 - [blakadder](https://github.com/blakadder) for assisting with support for Ultonic K10 air fryer.
+- [szupi-ipuzs](https://github.com/szupi-ipuzs) for contributing support for desk lamps (Setti+ SL601).

+ 1 - 0
DEVICES.md

@@ -269,6 +269,7 @@ of device.
 
 - Generic dimmable light (2 types, using dp 1,2 and 20,22)
 - Generic RGBCW/RGBWW lightbulb (confirmed with Lijun branded bulb, expected to match others also). Two versions - with and without scene/music modes and timer.
+- Generic dimmable/color temperature adjustable desktop lamp (confirmed with Setti+ SL601)
 - Atomi smart color string light
 - Deta/Arlec motion sensor lights (DET100HA/DET102HA/MAL315HA)
 - Deta 6910HA series2 dimmer switch

+ 1 - 4
custom_components/tuya_local/devices/desk_lamp.yaml

@@ -10,10 +10,7 @@ primary_entity:
       name: switch
     - id: 2
       type: string
-      name: color_mode
-      mapping:
-        - dps_val: white
-          value: color_temp
+      name: work_mode
     - id: 3
       name: brightness
       type: integer