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

Arlec thermostat: change switch from dp 1 to dp 2.

Based on diagnostics, it looks like there is never a dp 1 exposed by the device.
Probably though dp 2 works as a manual switch regardless of whether it is in
auto or manual mode, so make that a switch, even though it partially duplicates
the hvac_mode of the climate entity.

Issue #535
Jason Rumney 2 лет назад
Родитель
Сommit
a2e4d39e44
1 измененных файлов с 1 добавлено и 10 удалено
  1. 1 10
      custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

+ 1 - 10
custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

@@ -127,18 +127,9 @@ secondary_entities:
             icon: "mdi:toggle-switch"
   - entity: switch
     dps:
-      - id: 1
+      - id: 2
         type: boolean
         name: switch
-        optional: true
-        mapping:
-          constraint: climate_mode
-          conditions:
-            - dps_val: true
-              invalid: true
-      - id: 9
-        type: boolean
-        name: climate_mode
   - entity: sensor
     name: Current
     class: current