Преглед изворни кода

fix (morento_mr5866_air_purifier): make the config match the log

Issue #4682

Needed to make dp 11 optional. Also added optional dp 19 (time remaining), which
only seems to be reported when the timer is running.
Jason Rumney пре 14 часа
родитељ
комит
8a97683121
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      custom_components/tuya_local/devices/morento_mr5866_air_purifier.yaml

+ 12 - 0
custom_components/tuya_local/devices/morento_mr5866_air_purifier.yaml

@@ -69,6 +69,7 @@ entities:
     dps:
       - id: 11
         name: button
+        optional: true
         type: boolean
 
   - entity: select
@@ -88,6 +89,17 @@ entities:
           - dps_val: 8h
             value: 8h
 
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 19
+        type: integer
+        optional: true
+        name: sensor
+        unit: min
+
   - entity: sensor
     translation_key: air_quality
     class: enum