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

Loratap relay: add cycle_time, random_time and inching as attributes

Although these fields are too complex to work with, allow them to be
read if anyone wants them.  Will also make debugging easier if someone
wants to decode and add support later.
Jason Rumney 2 лет назад
Родитель
Сommit
f6495ea47a
3 измененных файлов с 17 добавлено и 4 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 3 2
      DEVICES.md
  3. 13 1
      custom_components/tuya_local/devices/loratap_relay.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -226,5 +226,5 @@ Further device support has been made with the assistance of users.  Please consi
 - [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer, Lepro lights (variant of RGBCW light without timer) and Yieryi pH meter.
 - [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light, Inkbird BBQ thermometer, Lepro lights (variant of RGBCW light without timer) and Yieryi pH meter.
 - [theshop35](https://github.com/theshop35) for assisting with support for CC curtains.
 - [theshop35](https://github.com/theshop35) for assisting with support for CC curtains.
 - [blakadder](https://github.com/blakadder) for assisting with support for Ultonic K10 air fryer.
 - [blakadder](https://github.com/blakadder) for assisting with support for Ultonic K10 air fryer.
-- [szupi-ipuzs](https://github.com/szupi-ipuzs) for contributing support for desk lamps (Setti+ SL601).
+- [szupi-ipuzs](https://github.com/szupi-ipuzs) for contributing support for desk lamps (Setti+ SL601) and Loratap relays.
 - [MackoMici](https://github.com/MackoMici) for contributing support for GX aroma diffuser, which was merged with the YYM config.
 - [MackoMici](https://github.com/MackoMici) for contributing support for GX aroma diffuser, which was merged with the YYM config.

+ 3 - 2
DEVICES.md

@@ -180,7 +180,7 @@
 - Anko 1.7L smart kettle
 - Anko 1.7L smart kettle
 - Setti+ KT950W smart kettle
 - Setti+ KT950W smart kettle
 - Inkbird iBBQ-4BW cooking probe thermometer
 - Inkbird iBBQ-4BW cooking probe thermometer
-- Inkbird sous vide cooker
+- Inkbird sous vide cooker (also supports Silvercrest sous vide sticks)
 - Kogan glass 1.7L smart kettle
 - Kogan glass 1.7L smart kettle
 - Silvercrest 1.7L smart kettle
 - Silvercrest 1.7L smart kettle
 - Ultenic K10 air fryer
 - Ultenic K10 air fryer
@@ -225,6 +225,7 @@ the best option.
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect USB charger with power socket
 - Grid Connect USB charger with power socket
 - Logicom Strippy 4 way power strip with USB
 - Logicom Strippy 4 way power strip with USB
+- Loratap RR400W-V2 relay switch
 - Mirabella Genio smartplug with USB
 - Mirabella Genio smartplug with USB
 - MoesHouse smartplug with RGBW nightlight
 - MoesHouse smartplug with RGBW nightlight
 - Qnect QN-WPO3 3 outlet + USB powerstrip with individual timers
 - Qnect QN-WPO3 3 outlet + USB powerstrip with individual timers
@@ -245,7 +246,7 @@ of device.
 - 4 way powerstrip with USB
 - 4 way powerstrip with USB
   _confirmed as working with AOFO ZLD-44EU-W_
   _confirmed as working with AOFO ZLD-44EU-W_
 - Generic smartplug with power monitoring (older models)
 - Generic smartplug with power monitoring (older models)
-  _confirmed as working with Kogan and Blitzwolf single smartplugs (smartplugv1)_
+  _confirmed as working with Kogan, Blitzwolf and Gosund single smartplugs (smartplugv1)_
 - Generic smartplug with power monitoring (newer models)
 - Generic smartplug with power monitoring (newer models)
   _confirmed as working with Kogan single smartplug with USB and Rillpac smartplugs (smartplugv2)_
   _confirmed as working with Kogan single smartplug with USB and Rillpac smartplugs (smartplugv2)_
 - Generic smartplug with power monitoring requiring polling of sensors
 - Generic smartplug with power monitoring requiring polling of sensors

+ 13 - 1
custom_components/tuya_local/devices/loratap_relay.yaml

@@ -1,4 +1,4 @@
-name: Loratap Relay
+name: Relay switch
 products:
 products:
   - id: owzofmjyg7foteb6
   - id: owzofmjyg7foteb6
     name: Loratap RR500W
     name: Loratap RR500W
@@ -8,6 +8,18 @@ primary_entity:
     - id: 1
     - id: 1
       type: boolean
       type: boolean
       name: switch
       name: switch
+    - id: 42
+      type: string
+      name: cycle_time
+      optional: true
+    - id: 43
+      type: string
+      name: random_time
+      optional: true
+    - id: 44
+      type: string
+      name: inching
+      optional: true
 secondary_entities:
 secondary_entities:
   - entity: number
   - entity: number
     name: Countdown
     name: Countdown