Răsfoiți Sursa

feat(starlight_heatpump): add Generator mode

Generator mode is a feature on some heat pumps to limit the output when
running on generator power. The options are 30%, 50%, 70%, though not
absolutely certain they are in the right order here.

Issue #5440
Jason Rumney 3 zile în urmă
părinte
comite
e86c15a99f

+ 17 - 3
custom_components/tuya_local/devices/starlight_heatpump.yaml

@@ -95,9 +95,6 @@ entities:
       - id: 119
         name: electricity_management
         type: string
-      - id: 120
-        name: gen_mode
-        type: string
       - id: 123
         name: flags_2
         type: hex
@@ -312,3 +309,20 @@ entities:
       - id: 131
         type: boolean
         name: sensor
+  - entity: select
+    name: Generator mode
+    icon: "mdi:generator-stationary"
+    category: config
+    dps:
+      - id: 120
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "Off (100%)"
+          - dps_val: L1
+            value: "30%"
+          - dps_val: L2
+            value: "50%"
+          - dps_val: L3
+            value: "70%"