Sonoff D1 Dimmer - PowerOnState turn on after power up.

77 views
Skip to first unread message

Patrick Schultz

unread,
Jan 1, 2021, 5:31:21 AM1/1/21
to TasmotaUsers
I have flashed a Sonoff D1 dimmer with the Tasmota 9.2. This works quite well so far, but the PowerOnState function does not seem to work as desired. The goal was that the lamp is switched on as soon as the D1 dimmer is supplied with power. For this I have set the PowerOnState to 1. Unfortunately, this works but, the lamp remains dark. 
Does anyone have an idea to solve this?

Philip Knowles

unread,
Jan 1, 2021, 6:08:25 AM1/1/21
to Patrick Schultz, TasmotaUsers

Have you read this page PowerOnState - Tasmota and what is SetOption0 set to?

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3783e99c-162b-46b3-b33a-0bb8b67a085dn%40googlegroups.com.

 

Patrick Schultz

unread,
Jan 1, 2021, 10:09:57 AM1/1/21
to TasmotaUsers
Hello Phil,

thank you for your feedback. 

Yes, I have read through that. The SetOption0 is set to 1 (default).

I have tried both PowerOnState 1 and 3. Neither option, makes the lamp come on after a cold start.

Can it probably be related to the fact that it is not a relay, but a serial communication. 
With the D1 dimmer, the ESP controls no relay via a GPIO but communicates vial serial interface with another controller on the board.

Cheers 

Patrick

Philip Knowles

unread,
Jan 1, 2021, 12:28:21 PM1/1/21
to Patrick Schultz, TasmotaUsers

SetOption0 1 tells Tasmota to store the relay states and restore on power on so that may be the issue  (although I doubt it – but it’s worth trying SetOption0 0).

 

If that doesn’t work you can create a Rule

On system#boot do power1 1 endon (not sure if that will work – may need to use serialsend)

Patrick Schultz

unread,
Jan 2, 2021, 3:17:10 PM1/2/21
to TasmotaUsers
Hi Phil,

yes, a rule was the solution.

I have used the following, this ensures that the lamp is always switched on after the dimmer is supplied with power. 

Rule1 on power1#boot do backlog var1 %value%;ruletimer1 10 endon on rules#timer=1 do backlog power1 off; power1 on endon

Cheers,

Patrick
Reply all
Reply to author
Forward
0 new messages