Просмотр исходного кода

Add support for Sunbeam single mattress warmer

Issue #2452
Jason Rumney 1 год назад
Родитель
Сommit
1cde33e779
3 измененных файлов с 140 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 138 0
      custom_components/tuya_local/devices/sunbeam_single_bedwarmer.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -515,7 +515,7 @@ Further device support has been made with the assistance of users. Please consid
 - [nk00li](https://github.com/nk00li) for assisting with support for BHT-002 GBLW thermometers that differ slightly from GALW in how they report the heating state.
 - [peteS-UK](https://github.com/peteS-UK) for contributing support for Noiee NSP21 and PU13 smart plugs.
 - [zeosson](https://github.com/zeosson) for contributing support for Feit RGBWW lights and Peteme recessed lighting.
-- [backcountrymountains](https://github.com/backcountrymountains) for contributing support for iHome AutoVac Nova vacuum cleaners.
+- [backcountrymountains](https://github.com/backcountrymountains) for contributing support for iHome AutoVac Nova vacuum cleaners and assisting with support for Sunbeam single heated mattress pad.
 - [afallows](https://github.com/afallows) for contributing support for MoistenLand water timers.
 - [popokio](https://github.com/popokio) for assisting with support for Plikc Neve X RFW thermostats.
 - [popeen](https://github.com/popeen) for contributing support for Silvercrest Coffee makers.

+ 1 - 0
DEVICES.md

@@ -918,6 +918,7 @@ port and password.
 - SNT957W-DE CBU temperature and humidity sensor
 - Speaka SP-TVCM-510 TV mount
 - Sunbeam dual heated mattress pad
+- Sunbeam single heated mattress pad
 - SWS-001 smart weather station
 - TH08 temperature and humidity sensor
 - TH16 temperature and humidity sensor

+ 138 - 0
custom_components/tuya_local/devices/sunbeam_single_bedwarmer.yaml

@@ -0,0 +1,138 @@
+name: Bed warmer
+products:
+  - id: vrwpecr7ijucirtl
+    manufacturer: Sunbeam
+    model: S1
+entities:
+  - entity: switch
+    icon: "mdi:bed"
+    dps:
+      - id: 14
+        type: boolean
+        name: switch
+      - id: 103
+        type: string
+        name: confirmation
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code
+  - entity: select
+    name: Level
+    icon: "mdi:mdi:thermometer"
+    category: config
+    dps:
+      - id: 20
+        type: string
+        name: option
+        mapping:
+          - dps_val: level_1
+            value: "1"
+          - dps_val: level_2
+            value: "2"
+          - dps_val: level_3
+            value: "3"
+          - dps_val: level_4
+            value: "4"
+          - dps_val: level_5
+            value: "5"
+          - dps_val: level_6
+            value: "6"
+          - dps_val: level_7
+            value: "7"
+          - dps_val: level_8
+            value: "8"
+          - dps_val: level_9
+            value: "9"
+          - dps_val: level_10
+            value: "10"
+  - entity: switch
+    name: Preheat
+    icon: "mdi:heat-wave"
+    category: config
+    dps:
+      - id: 24
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: string
+        name: option
+        mapping:
+          - dps_val: Stay_On
+            value: cancel
+          - dps_val: "30m"
+            value: "30m"
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "1h30m"
+            value: "1h30m"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "2h30m"
+            value: "2h30m"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "3h30m"
+            value: "3h30m"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "4h30m"
+            value: "4h30m"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "6h30m"
+            value: "6h30m"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "7h30m"
+            value: "7h30m"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "8h30m"
+            value: "8h30m"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "9h30m"
+            value: "9h30m"
+          - dps_val: "10h"
+            value: "10h"
+      - id: 101
+        type: string
+        optional: true
+        name: schedule
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 28
+        type: integer
+        name: sensor
+        unit: s
+        class: measurement
+  - entity: sensor
+    name: Preheat remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: s
+        class: measurement