Kaynağa Gözat

Add support for Relay switch with 433MHz remote

Issue #947
Jason Rumney 2 yıl önce
ebeveyn
işleme
f3e70aee00

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -298,7 +298,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [NatMan3000](https://github.com/NatMan3000) for assisting with support for Arlec Ceiling fan/light remote control kits.
 - [TanYauRei](https://github.com/TanYauRei) for assisting with support for Daewoo Dhome air conditioners.
 - [eivindsor](https://github.com/eivindsor) for assisting with support for Lucking HS6 smart locks.
-- [epajfl00](https://github.com/epajfl00) for assisting with support for Neo Coolcam sirens.
+- [epajfl00](https://github.com/epajfl00) for assisting with support for Neo Coolcam sirens and Relay switches with 433Mhz remotes.
 - [jorometala](https://github.com/jorometala) for assisting with support for Iebeyond ECH RF hub doorbells.
 - [Yersi88](https://github.com/Yersi88) for contributing support for Costway portable air conditioners.
 - [bdkacz](https://github.com/bdkacz) for assisting with support for ZX-GS21 gask leak alarms.

+ 1 - 0
DEVICES.md

@@ -281,6 +281,7 @@ the best option.
 - MoesHouse smartplug with RGBW nightlight
 - Novadigital 4-way switch with backlight, power on state and timers
 - Qnect QN-WPO3 3 outlet + USB powerstrip with individual timers
+- Relay switch with 433MHz remote (unbranded)
 - Single switch with backlight (unbranded)
 - Somgam single wall switch
 - Somgam double wall switch

+ 76 - 0
custom_components/tuya_local/devices/relay_switch_remote.yaml

@@ -0,0 +1,76 @@
+name: Relay switch
+products:
+  - id: bfab649367a583280dvytj
+    name: 1-433
+primary_entity:
+  entity: switch
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 42
+      type: string
+      name: random_time
+    - id: 43
+      type: string
+      name: cycle_time
+    - id: 44
+      type: string
+      name: inching
+    - id: 49
+      name: add_remote
+      type: string
+      optional: true
+    - id: 50
+      name: list_remote
+      type: string
+      optional: true
+secondary_entities:
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: select
+    name: Power on state
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 38
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "On"
+          - dps_val: "2"
+            value: Last state
+  - entity: select
+    name: Switch type
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 47
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: flip
+          - dps_val: "1"
+            value: sync
+          - dps_val: "2"
+            value: button
+
+
+