Przeglądaj źródła

Silvercrest kettle: make timer optional.

The logs from the device do not have the timer attribute documented in the
API Explorer docs. Presumably this is only available when the timer is active,
or is a write only property.

Issue #516
Jason Rumney 3 lat temu
rodzic
commit
8991887142

+ 2 - 1
custom_components/tuya_local/devices/silvercrest_kettle.yaml

@@ -32,12 +32,12 @@ primary_entity:
         max: 100
         max: 100
       mapping:
       mapping:
         - step: 5
         - step: 5
-      # One of these unknowns should be the "16 preset programs". Both are numeric strings (so probably enums)
     - id: 13
     - id: 13
       type: boolean
       type: boolean
       name: warm
       name: warm
       optional: true
       optional: true
       hidden: true
       hidden: true
+      # One of these unknowns should be the "16 preset programs". Both are numeric strings (so probably enums)
     - id: 15
     - id: 15
       type: string
       type: string
       name: unknown_15
       name: unknown_15
@@ -63,6 +63,7 @@ secondary_entities:
         type: integer
         type: integer
         name: value
         name: value
         unit: min
         unit: min
+        optional: true
         range:
         range:
           min: 0
           min: 0
           max: 120
           max: 120