_Cyber_ wrote: ↑10 Nov 2019, 21:38
I am trying to use the rules-part to disable a relay after a specific time.
Basic commands are written in the first post in this thread.
All commands are documented inside the source code header:
https://github.com/enesbcs/ESPEasyPlugi ... Switch.ino
"ACT : SetSwitch r1:1" is debug information only, "relay" is the command that you used before...
List of commands :
Set specific relay (0-3) to status (0/1)
Pulse specific relay for DELAY millisec with STATUS state, than return to inverse state
Set DIM_VALUE to Tuya dimmer switch (value can be 0-255, no range check!)
Of course, only the Tuya dimmer can do it... dim value can be read from plugin values.
There are no checks for is it state on or off.
Command Examples :
Switch on first relay
Switch off first relay
Switch on second relay
Switch off second relay
Set first relay to ON for 500ms, than stay OFF
Set first relay to OFF for 1s, than stay ON
Set dimmer to MAX value
Set dimmer to ~10%