Browse Source

Add support for sensors attached to a Universal Remote Control.

Issue #203
Jason Rumney 3 years ago
parent
commit
c4ff146607
3 changed files with 29 additions and 1 deletions
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      README.md
  3. 27 0
      custom_components/tuya_local/devices/ir_remote_sensors.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -94,7 +94,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [Krispkiwi](https://github.com/Krispkiwi) for assistance with M027 curtain modules and debugging Kogan Kettle.
 - [craibo](https://github.com/craibo) for contributing support for Jiahong ET-72W thermostats.
 - [x-keita](https://github.com/x-keita) for contributing support for Betterlife BL1500 IR heaters and Nexxt smart switches.
-- [Der-Nax](https:github.com/Der-Nax) for assistant with a second variant of energy monitoring smart switch and for contributing support for PY321-TY power clamps and Compteur smart meters.
+- [Der-Nax](https:github.com/Der-Nax) for assistance with a second variant of energy monitoring smart switch and for contributing support for PY321-TY power clamps, Compteur smart meters and sensors on a Universal Remote Control.
 - [17hoehbr](https://github.com/17hoehbr) for assistance supporting APOSEN A550
 - [yurgh](https://github.com/yurgh) for assistant supporting Eesee Adam dehumidifier
 - [KaportsevIA](https://github.com/KaportsevIA) for assistance supporting Hyundai Sahara dehumidifier, Yandax color bulb and ES01 powerstrip.

+ 1 - 0
README.md

@@ -190,6 +190,7 @@ Other brands may work with the above configurations
 ### Miscellaneous
 - Qoto 03 Smart Water Valve / Sprinkler Controller
 - SD123 HPR01 Human Presence Radar
+- Universal Remote Control (supports sensors only)
 
 ---
 

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

@@ -0,0 +1,27 @@
+name: Universal Remote Control
+products:
+  - id: whs3cty93fzrqkpt
+# Remote device is not supported, as it requires sub devices and a new platform
+# But we can support the sensors on the device.
+primary_entity:
+  entity: sensor
+  name: Temperature
+  class: temperature
+  dps:
+    - id: 101
+      name: sensor
+      type: integer
+      class: measurement
+      unit: C
+      mapping:
+        - scale: 10
+secondary_entities:
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 102
+        name: sensor
+        type: integer
+        unit: "%"
+        class: measurement