Hello,
which way switches the relais on a sonoff basic while booting the fastest while using ESP Easy? Is there a possibility to manage this by the initial firmware? I used rules or gpio boot states.
But it is much slower than Tasmota with "PowerOnState on". But in this case this setting wasn't there after a while without power for the sonoff. Can I "config" this setting by editing a configfile (config_user.h)
Greetings
Thomas
Which way to switch a relais on boot
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 18
- Joined: 29 Mar 2017, 12:05
-
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
Re: Which way to switch a relais on boot
Hello Thomas
easiest way is using rules.
I've a sonoff basic in my office ceiling light and use a simple rule for that:
The advantage of that: I can switch light on with the standard wall switch in case of failure.
The disadvantage: It takes about 6 seconds until the sonoff boots up and the rule works.
I've tried some other things but they had some other quirks, flickering, blocking the remote control and such.
I try to avoid changing sources as with the next update i surely have forgotten i changed it
Regards
Shardan (Aka Thomas
)
easiest way is using rules.
I've a sonoff basic in my office ceiling light and use a simple rule for that:
Code: Select all
On System#Boot do
gpio,12,1
endon
The disadvantage: It takes about 6 seconds until the sonoff boots up and the rule works.
I've tried some other things but they had some other quirks, flickering, blocking the remote control and such.
I try to avoid changing sources as with the next update i surely have forgotten i changed it

Regards
Shardan (Aka Thomas

Regards
Shardan
Shardan
-
- Normal user
- Posts: 18
- Joined: 29 Mar 2017, 12:05
Re: Which way to switch a relais on boot
Hello again,
try using gpio boot states. This way is much faster then the rules. Perhaps there is a other faster way using ESP-Easy.
Using Tasmota would be better for me. I use a POW also. Maybe another has a idea how to configure the default state of the relais while booting.
Untill now (without KNX) I want to use the common electric wires. If I want to switch the lamp on, 4-6 sek are too long for getting an reaction of the lamp. This would't be accepted by my wife.
try using gpio boot states. This way is much faster then the rules. Perhaps there is a other faster way using ESP-Easy.
Using Tasmota would be better for me. I use a POW also. Maybe another has a idea how to configure the default state of the relais while booting.
Untill now (without KNX) I want to use the common electric wires. If I want to switch the lamp on, 4-6 sek are too long for getting an reaction of the lamp. This would't be accepted by my wife.

Who is online
Users browsing this forum: Anthropic Claude Bot [bot], Bing [Bot], OpenAI GPTBot [bot] and 23 guests