4
0
Эх сурвалжийг харах

Update atorch_s1tw_thermostat.yaml

'Sensor detection flag' added as 'available' attribute of temperature sensor.
vvv2542 10 сар өмнө
parent
commit
a2e729e7af

+ 7 - 8
custom_components/tuya_local/devices/atorch_s1tw_thermostat.yaml

@@ -219,6 +219,13 @@ entities:
             value: C
             value: C
           - dps_val: f
           - dps_val: f
             value: F
             value: F
+      - id: 126
+        type: boolean
+        name: available
+        mapping:
+          - dps_val: true
+            value: false
+          - value: true
   - entity: sensor
   - entity: sensor
     class: current
     class: current
     category: diagnostic
     category: diagnostic
@@ -364,14 +371,6 @@ entities:
         class: total_increasing
         class: total_increasing
         mapping:
         mapping:
           - scale: 1000
           - scale: 1000
-  - entity: binary_sensor
-    name: Sensor detection flag
-    category: diagnostic
-    dps:
-      - id: 126
-        type: boolean
-        name: sensor
-        class: measurement
   - entity: number
   - entity: number
     name: Reporting interval
     name: Reporting interval
     class: duration
     class: duration