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

Stadler Roger: change fan from presets to speeds.

Apparently even though the names contain "auto", this is actually just a faster speed step than "high" (and "sleep" a slower speed than "low").
So these can be implemented as speed rather than presets.

Issue #247
Jason Rumney 3 лет назад
Родитель
Сommit
4423135b2e

+ 7 - 6
custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml

@@ -8,19 +8,20 @@ primary_entity:
       type: boolean
       name: switch
     - id: 4
-      name: preset_mode
+      name: speed
       type: string
       mapping:
+        # According to original reporter these are all progressivly faster speeds, even though auto suggests something else.
         - dps_val: "sleep"
-          value: "Sleep"
+          value: 20
         - dps_val: "low"
-          value: "Low"
+          value: 40
         - dps_val: "mid"
-          value: "Mid"
+          value: 60
         - dps_val: "high"
-          value: "High"
+          value: 80
         - dps_val: "auto"
-          value: "Auto"
+          value: 100
 secondary_entities:
   - entity: light
     category: config