瀏覽代碼

Add support for PGST PA-010 temperature and humidity sensor.

Issue #426
Jason Rumney 3 年之前
父節點
當前提交
82a4173c4a
共有 3 個文件被更改,包括 106 次插入0 次删除
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 104 0
      custom_components/tuya_local/devices/pgst_climate_sensor.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -193,3 +193,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Saentist](https://github.com/Saentist) for contributing Bulgarian translations.
 - [drudgebg](https://github.com/drudgebg) for contributing support for Teckin SS42 outdoor double smartplug.
 - [saotthon](https://github.com/saotthon) for assisting with support for BVF CP1 heaters.
+- [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors.

+ 1 - 0
DEVICES.md

@@ -278,6 +278,7 @@ generic configurations known to work with multiple brands of device.
 - Konlen/Rockson WF96L water level controller
 - Nedis pet feeder
 - Nedis WIFISA10CWT air quality monitor
+- PGST PA-010 indoor temperature and humidity sensor
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)

+ 104 - 0
custom_components/tuya_local/devices/pgst_climate_sensor.yaml

@@ -0,0 +1,104 @@
+name: Indoor temperature humidity
+primary_entity:
+  entity: sensor
+  name: Temperature
+  class: temperature
+  dps:
+    - id: 1
+      type: integer
+      name: sensor
+      unit: C
+      class: measurement
+    - id: 23
+      type: integer
+      name: unknown_23
+    - id: 24
+      type: integer
+      name: unknown_24
+secondary_entities:
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    name: Battery level
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 3
+        type: string
+        name: sensor
+        unit: "%"
+        mapping:
+          - dps_val: low
+            value: 20
+          - dps_val: middle
+            value: 50
+          - dps_val: high
+            value: 80
+  - entity: select
+    name: Display unit
+    icon: "mdi:temperature-celsius"
+    category: config
+    dps:
+      - id: 9
+        type: string
+        name: option
+        mapping:
+          - dps_val: f
+            value: Fahrenheit
+          - dps_val: c
+            value: Celsius
+  - entity: number
+    name: Maximum temperature
+    category: config
+    icon: "mdi:thermometer-chevron-up"
+    dps:
+      - id: 10
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: -20
+          max: 70
+  - entity: number
+    name: Minimum temperature
+    category: config
+    icon: "mdi:thermometer-chevron-down"
+    dps:
+      - id: 11
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: -20
+          max: 70
+  - entity: number
+    name: Maximum humidity
+    category: config
+    icon: "mdi:water-percent"
+    dps:
+      - id: 12
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+  - entity: number
+    name: Minimum humidity
+    category: config
+    icon: "mdi:water-percent"
+    dps:
+      - id: 13
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100