浏览代码

Add support for Tesla Smart Pet Sofa PS300 (#5712)

Add support for the Tesla Smart Pet Sofa PS300 (product ID
`13oghytketwcoz1z`).
Entities
* Climate
  * HVAC mode (Off / Heat_Cool)
  * Target temperature
  * Current temperature
  * Preset mode (Auto, Manual, Smart)
  * HVAC action (Idle, Heating, Cooling)
  
* Ambient temperature sensor
* Fault sensor
* Schedule (text)
* Push state (diagnostic)

Testing
Tested against a physical Tesla Smart Pet Sofa PS300 using protocol 3.3.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Petr Kotek 1 月之前
父节点
当前提交
2df8adde7a
共有 1 个文件被更改,包括 77 次插入 和 0 次删除
  1. 77 0
      custom_components/tuya_local/devices/teslasmart_ps300_petsofa.yaml

+ 77 - 0
custom_components/tuya_local/devices/teslasmart_ps300_petsofa.yaml

@@ -0,0 +1,77 @@
+name: Pet sofa
+products:
+  - id: 13oghytketwcoz1z
+    manufacturer: Tesla
+    model: Smart Pet Sofa PS300
+
+entities:
+  - entity: climate
+    icon: "mdi:sofa"
+    name: Pet sofa
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: true
+            value: "heat_cool"
+          - dps_val: false
+            value: "off"
+      - id: 8
+        name: temperature
+        type: integer
+        unit: C
+        range:
+          min: 20
+          max: 38
+      - id: 16
+        name: current_temperature
+        type: integer
+
+      - id: 101
+        name: hvac_action
+        type: integer
+        mapping:
+          - dps_val: 1
+            value: idle
+          - dps_val: 2
+            value: heating
+          - dps_val: 3
+            value: cooling
+      - id: 7
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: auto
+            value: auto
+          - dps_val: manual
+            value: manual
+          - dps_val: smart
+            value: smart
+
+  - entity: sensor
+    translation_key: ambient_temperature
+    class: temperature
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: "C"
+
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 22
+        type: bitfield
+        name: fault_code
+      - id: 105
+        type: integer
+        name: push_state