فهرست منبع

RGBCW lights: loosen matching to not require brightness.

Quite a few bulbs seem to only report the dps relevant to the current
mode.  BrilliantSmart RGB garden lights are one example, the log and
iot portal info both only list colordata, scene and controldata dps,
without the colortemp and brightness, but according to info about the
bulbs they do support white mode with those adjustments.  Some of the
other novelty light strings and space lamp that we have support for
were like this too.

Issue #515
Jason Rumney 3 سال پیش
والد
کامیت
d1c6460e47
2فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 4 0
      custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -215,3 +215,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [runlar](https://github.com/runlar) for assisting with support for Deltaco SH-P02E smartplugs (dual_power_monitoring_smartplugv2 without some optional features)
 - [runlar](https://github.com/runlar) for assisting with support for Deltaco SH-P02E smartplugs (dual_power_monitoring_smartplugv2 without some optional features)
 - [Kannix2005](https://github.com/Kannix2005) for assisting with support for Etersky aroma diffusers.
 - [Kannix2005](https://github.com/Kannix2005) for assisting with support for Etersky aroma diffusers.
 - [Daverover66](https://github.com/Daverover66) for assisting with support for ElectriQ PD45E dehumidifiers.
 - [Daverover66](https://github.com/Daverover66) for assisting with support for ElectriQ PD45E dehumidifiers.
+- [ettiennegous](https://github.com/ettiennegous) for assisting with support for BrilliantSmart RGB garden lights.

+ 4 - 0
custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

@@ -4,6 +4,8 @@ products:
     name: Lijun smart bulb RGBCW
     name: Lijun smart bulb RGBCW
   - id: nh2i3k5q5aenhdq3
   - id: nh2i3k5q5aenhdq3
     name: Aubess E14 smart bulb RGBCW
     name: Aubess E14 smart bulb RGBCW
+  - id: ei0cjv7ogxdgcekq
+    name: BrilliantSmart RGB garden lights
 primary_entity:
 primary_entity:
   entity: light
   entity: light
   dps:
   dps:
@@ -25,10 +27,12 @@ primary_entity:
     - id: 22
     - id: 22
       name: brightness
       name: brightness
       type: integer
       type: integer
+      optional: true
       range:
       range:
         min: 10
         min: 10
         max: 1000
         max: 1000
       mapping:
       mapping:
+        - dps_val: null
         - scale: 3.92
         - scale: 3.92
     - id: 23
     - id: 23
       name: color_temp
       name: color_temp