Quellcode durchsuchen

feat(ir_remote_sensors): add support for S09

- add optional calibration config, but leave them disabled by default
  not sure which devices support them, and even if supported, users don't have
  the equipment to properly calibrate their device in general

PR #5127 by @mmaarrkk02
Jason Rumney vor 16 Stunden
Ursprung
Commit
5bd1a75aca
1 geänderte Dateien mit 32 neuen und 0 gelöschten Zeilen
  1. 32 0
      custom_components/tuya_local/devices/ir_remote_sensors.yaml

+ 32 - 0
custom_components/tuya_local/devices/ir_remote_sensors.yaml

@@ -1,6 +1,8 @@
 name: Universal remote control
 products:
   - id: whs3cty93fzrqkpt
+  - id: jbe3snv4tki8oo9c
+    model: S09
 entities:
   - entity: remote
     dps:
@@ -37,3 +39,33 @@ entities:
         type: integer
         unit: "%"
         class: measurement
+  - entity: number
+    translation_key: temperature_calibration
+    class: temperature_delta
+    category: config
+    hidden: true
+    dps:
+      - id: 103
+        type: integer
+        optional: true
+        name: value
+        unit: C
+        range:
+          min: -20
+          max: 20
+        mapping:
+          - scale: 10
+  - entity: number
+    name: Humidity calibration
+    category: config
+    class: humidity
+    hidden: true
+    dps:
+      - id: 104
+        type: integer
+        optional: true
+        name: value
+        unit: "%"
+        range:
+          min: -10
+          max: 10