Bladeren bron

Beca BHT6000: merge into identical Beca BHT002 config

Even the product id matches for these two.
Jason Rumney 1 jaar geleden
bovenliggende
commit
9d83fca3f1

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

@@ -1,7 +1,8 @@
 name: Thermostat
+legacy_type: beca_bht6000_thermostat_c
 products:
   - id: IAYz2WK1th0cMLmL
-    name: Beca BHT-002
+    name: Beca BHT-002 / MJZM 16A-3000BH
 primary_entity:
   entity: climate
   dps:

+ 0 - 76
custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml

@@ -1,76 +0,0 @@
-name: Beca BHT-6000 thermostat C
-products:
-  - id: IAYz2WK1th0cMLmL
-    name: MJZM 16A-3000BH
-primary_entity:
-  entity: climate
-  dps:
-    - id: 1
-      type: boolean
-      name: hvac_mode
-      mapping:
-        - dps_val: false
-          value: "off"
-        - dps_val: true
-          constraint: mode
-          conditions:
-            - dps_val: "0"
-              value: auto
-            - dps_val: "1"
-              value: heat
-    - id: 2
-      type: integer
-      name: temperature
-      unit: C
-      range:
-        min: 10
-        max: 70
-      mapping:
-        - scale: 2
-    - id: 3
-      type: integer
-      name: current_temperature
-      mapping:
-        - scale: 2
-    - id: 4
-      type: string
-      name: mode
-      hidden: true
-    - id: 5
-      type: boolean
-      name: preset_mode
-      mapping:
-        - dps_val: true
-          value: eco
-        - dps_val: false
-          value: comfort
-    - id: 102
-      type: integer
-      name: floor_temperature
-      mapping:
-        - scale: 2
-    - id: 103
-      type: string
-      name: unknown_103
-    - id: 104
-      type: boolean
-      name: unknown_104
-secondary_entities:
-  - entity: lock
-    translation_key: child_lock
-    category: config
-    dps:
-      - id: 6
-        type: boolean
-        name: lock
-  - entity: sensor
-    name: External temperature
-    class: temperature
-    dps:
-      - id: 102
-        type: integer
-        name: sensor
-        unit: C
-        class: measurement
-        mapping:
-          - scale: 2