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

DunWore thermostat: fix temperature scale and naming issues

Scale should be directly within the condition, as nested mappings do not
support default mappings.

No name was defined for the thermostat translation key, so HA displays
"None".

Issue #2730
Jason Rumney 1 год назад
Родитель
Сommit
3dcf7682bb

+ 2 - 3
custom_components/tuya_local/devices/dunwore_f60_floorheating.yaml

@@ -130,9 +130,8 @@ entities:
                 range:
                 range:
                   min: 50
                   min: 50
                   max: 600
                   max: 600
-                mapping:
-                  - scale: 10
-                    step: 5
+                scale: 10
+                step: 5
       - id: 23
       - id: 23
         type: string
         type: string
         name: unit
         name: unit

+ 1 - 0
custom_components/tuya_local/translations/bg.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Термостат",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/cz.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/de.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Thermostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/el.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Θερμοστάτης",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/en.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Thermostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/es.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostato",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/fr.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Thermostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/hu.json

@@ -180,6 +180,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Hőmérséklet szabályozó",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/id.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/it.json

@@ -180,6 +180,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostato",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/ja.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "サーモスタット",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -180,6 +180,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/pl.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostat",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Termostato",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/ru.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Термостат",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/uk.json

@@ -181,6 +181,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "Термостат",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/ur.json

@@ -182,6 +182,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "تھرموسٹیٹ",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "恒温器",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {

+ 1 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -179,6 +179,7 @@
                 }
                 }
             },
             },
             "thermostat": {
             "thermostat": {
+                "name": "恆溫器",
                 "state_attributes": {
                 "state_attributes": {
                     "fan_mode": {
                     "fan_mode": {
                         "state": {
                         "state": {