Przeglądaj źródła

Add Hauslane IN-R110 range hood (#5423)

* Add Hauslane IN-R110 range hood

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(hauslane_in_r110_rangehood): add duration class, remove measurement

- filter lifespan sensors are not really measurements, they are estimates based on timers usually, and will always look like a triangle function so not useful to waste long-term statistic space on.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Ivan Ivanov 3 dni temu
rodzic
commit
09abb04542

+ 60 - 0
custom_components/tuya_local/devices/hauslane_in_r110_rangehood.yaml

@@ -0,0 +1,60 @@
+name: Range hood
+products:
+  - id: tql6vskv9hlesoav
+    manufacturer: Hauslane
+    model: IN-R110
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 10
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "off"
+            value: 0
+          - dps_val: low
+            value: 25
+          - dps_val: middle
+            value: 50
+          - dps_val: high
+            value: 75
+          - dps_val: max
+            value: 100
+  - entity: light
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: number
+    name: Delay shutoff
+    class: duration
+    category: config
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 5
+  - entity: sensor
+    name: Baffle filter
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: h
+  - entity: sensor
+    name: Charcoal filter
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+        unit: h