Sfoglia il codice sorgente

feat(devices): add Sodial probe thermometer

Issue #5266
Jason Rumney 1 mese fa
parent
commit
346815c835

+ 1 - 0
DEVICES.md

@@ -1335,6 +1335,7 @@ port and password.
 - SD123 HPR01 human presence radar
 - SNT957W-TDE temperature sensor
 - SNT957W-DE CBU temperature and humidity sensor
+- Sodial probe thermometer
 - Speaka SP-TVCM-510 TV mount
 - Steigen Solar Pro clothes drying rack
 - Sunbeam dual heated mattress pad

+ 35 - 0
custom_components/tuya_local/devices/sodial_temperature_probe.yaml

@@ -0,0 +1,35 @@
+name: Probe thermometer
+products:
+  - id: eprxtogzeseoze3o
+    manufacturer: Sodial
+entities:
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 1
+        type: integer
+        name: sensor
+        class: measurement
+        mapping:
+          - scale: 10
+      - id: 9
+        type: string
+        optional: true
+        name: unit
+        mapping:
+          - dps_val: f
+            value: F
+          - value: C
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 9
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit