Which way to switch a relais on boot

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Which way to switch a relais on boot

#1 Post by tklein.lotte@web.de » 07 May 2017, 15:02

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

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Which way to switch a relais on boot

#2 Post by Shardan » 07 May 2017, 15:13

Hello 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 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 :) )
Regards
Shardan

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: Which way to switch a relais on boot

#3 Post by tklein.lotte@web.de » 07 May 2017, 15:22

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. :-)

Who is online

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