Explorar el Código

Add support for Konlen SNT957W-TDE E3S temperature alarm

Issue #3244
Jason Rumney hace 9 meses
padre
commit
7f8042af25

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -947,3 +947,4 @@ Further device support has been made with the assistance of users. Please consid
 - [1B9-MasterChief](https://github.com/1B9-MasterChief) for contributing support for Sonnenkönig Fresco 140/180 air conditioner.
 - [fribse](https://github.com/fribse) for assisting with support for Denver SHP-200mk2 dual smartplug.
 - [DroidFreak32](https://github.com/DroidFreak32) for assisting with support for HomeMate PTZ indoor camera.
+- [danvit58](https://github.com/danvit58) for assisting with support for Konlen SNT957W-TDE E3S temperature alarm.

+ 1 - 0
DEVICES.md

@@ -949,6 +949,7 @@ port and password.
 - KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat
 - Kogan KAWHTNOSLPA white noise sleep aid
+- Konlen SNT957W-TDE E3S temperature alarm
 - Konlen/Rockson WF96L water level controller
 - Madimack Inverflow Pro pool pump (also AquaForte Inverter VSP, Aquagem Inverpro)
 - Manta Windy MT0200B weather station

+ 82 - 0
custom_components/tuya_local/devices/konlen_snt957w_tempsensor.yaml

@@ -0,0 +1,82 @@
+name: Temperature alarm
+products:
+  - id: pbgnjxdebaomrxjl
+    manufacturer: Konlen
+    model: SNT957W-TDE E3S
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+      - id: 9
+        type: string
+        name: temperature_unit
+        mapping:
+          - dps_val: f
+            value: F
+          - value: C
+      - id: 10
+        type: integer
+        name: target_temp_high
+        mapping:
+          - scale: 10
+        range:
+          min: -400
+          max: 1200
+      - id: 11
+        type: integer
+        name: target_temp_low
+        mapping:
+          - scale: 10
+        range:
+          min: -400
+          max: 1200
+  - entity: binary_sensor
+    class: cold
+    dps:
+      - id: 14
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: loweralarm
+            value: true
+          - value: false
+  - entity: binary_sensor
+    class: heat
+    dps:
+      - id: 14
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: upperalarm
+            value: true
+          - value: false
+  - entity: number
+    name: Temperature calibration
+    category: config
+    icon: "mdi:thermometer-check"
+    dps:
+      - id: 19
+        type: integer
+        name: value
+        unit: °
+        range:
+          min: -100
+          max: 100
+        mapping:
+          - scale: 10
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 9
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit