ソースを参照

Hosome purifier: add child lock, remove pm2.5 scaling

Identified that the unknown boolean is a lock feature

According to Tuya portal info, PM2.5 is not scaled, though they do not
give units, so it may also be uncalibrated.
Jason Rumney 3 年 前
コミット
a344b00d87
1 ファイル変更9 行追加5 行削除
  1. 9 5
      custom_components/tuya_local/devices/hosome_purifier.yaml

+ 9 - 5
custom_components/tuya_local/devices/hosome_purifier.yaml

@@ -27,9 +27,6 @@ primary_entity:
           value: 67
         - dps_val: "3"
           value: 100
-    - id: 7
-      type: boolean
-      name: unknown_7
     - id: 22
       type: string
       name: unknown_22
@@ -43,8 +40,6 @@ secondary_entities:
         name: sensor
         class: measurement
         unit: ugm3
-        mapping:
-          - scale: 10
   - entity: sensor
     name: Filter
     category: diagnostic
@@ -54,3 +49,12 @@ secondary_entities:
         type: integer
         name: sensor
         unit: "%"
+  - entity: lock
+    name: Child lock
+    category: config
+    icon: "mdi:hand-back-right-off"
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+