Tasmota web timer action on sets on and immediately off

1,281 views
Skip to first unread message

Mark Scan4U

unread,
Feb 18, 2021, 1:33:52 AM2/18/21
to TasmotaUsers
Hi, noobie here looking for assistance.

I am trying to set up timers on a Sonoff Basic via the Tasmota Timers page option and am finding that when I add an action with either ON or TOGGLE the connected light just blinks once. Looking in the console I see it is sending an ON immediately followed by an OFF. The OFF action works perfectly sending just the OFF.

From much googling I am wondering whether my Sonoffs have been set up as momentary switches and, if so, how I can set them back to toggle switches?

Philip Knowles

unread,
Feb 18, 2021, 1:59:01 AM2/18/21
to TasmotaUsers, Mark Scan4U
Can you post a screenshot of the module configuration page and also the timer settings page. If you have any rules set can you post them too

Regards

Phil K


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Mark Scan4U <in...@scan4u.co.za>
Sent: Thursday, February 18, 2021 6:33:52 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Tasmota web timer action on sets on and immediately off
 
Hi, noobie here looking for assistance.

I am trying to set up timers on a Sonoff Basic via the Tasmota Timers page option and am finding that when I add an action with either ON or TOGGLE the connected light just blinks once. Looking in the console I see it is sending an ON immediately followed by an OFF. The OFF action works perfectly sending just the OFF.

From much googling I am wondering whether my Sonoffs have been set up as momentary switches and, if so, how I can set them back to toggle switches?

--
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/a9f872e9-9914-437d-94f8-2c8c8982ec4bn%40googlegroups.com.

Mark Scan4U

unread,
Feb 18, 2021, 2:17:08 AM2/18/21
to TasmotaUsers
Sonoff config.pngSonoff timer config.png

Mark Scan4U

unread,
Feb 18, 2021, 2:22:58 AM2/18/21
to TasmotaUsers
I haven't set any rules yet.

Just some more info:
I have tried switchmode 0 and 1 without success and when I manually press the button on the Basic it works as a toggle switch.

Philip Knowles

unread,
Feb 18, 2021, 2:26:45 AM2/18/21
to Mark Scan4U, TasmotaUsers

The switch is set as a switch so the issue is with the timer – the switchmode etc don’t affect the timer side only the physical switch.

What is the output if you type timer1 in console

 

Regards

Phil K

Sent from Mail for Windows 10

 

From: Mark Scan4U
Sent: 18 February 2021 07:23
To: TasmotaUsers
Subject: Re: Tasmota web timer action on sets on and immediately off

 

I haven't set any rules yet.

 

Just some more info:

I have tried switchmode 0 and 1 without success and when I manually press the button on the Basic it works as a toggle switch.

 

On Thursday, February 18, 2021 at 9:17:08 AM UTC+2 Mark Scan4U wrote:

On Thursday, February 18, 2021 at 8:59:01 AM UTC+2 knowles...@gmail.com wrote:

Can you post a screenshot of the module configuration page and also the timer settings page. If you have any rules set can you post them too

Regards

Phil K

From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Mark Scan4U <in...@scan4u.co.za>
Sent: Thursday, February 18, 2021 6:33:52 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Tasmota web timer action on sets on and immediately off

 

Hi, noobie here looking for assistance.

 

I am trying to set up timers on a Sonoff Basic via the Tasmota Timers page option and am finding that when I add an action with either ON or TOGGLE the connected light just blinks once. Looking in the console I see it is sending an ON immediately followed by an OFF. The OFF action works perfectly sending just the OFF.

 

From much googling I am wondering whether my Sonoffs have been set up as momentary switches and, if so, how I can set them back to toggle switches?

 

--
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/a9f872e9-9914-437d-94f8-2c8c8982ec4bn%40googlegroups.com.

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

Philip Knowles

unread,
Feb 18, 2021, 2:33:27 AM2/18/21
to Mark Scan4U, TasmotaUsers

Do you have a physical switch attached? If so do you have a pullup resistor on it?

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

 

From: Mark Scan4U
Sent: 18 February 2021 07:23
To: TasmotaUsers

Subject: Re: Tasmota web timer action on sets on and immediately off

 

I haven't set any rules yet.

 

Just some more info:

I have tried switchmode 0 and 1 without success and when I manually press the button on the Basic it works as a toggle switch.

 

On Thursday, February 18, 2021 at 9:17:08 AM UTC+2 Mark Scan4U wrote:

On Thursday, February 18, 2021 at 8:59:01 AM UTC+2 knowles...@gmail.com wrote:

Can you post a screenshot of the module configuration page and also the timer settings page. If you have any rules set can you post them too

Regards

Phil K

From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Mark Scan4U <in...@scan4u.co.za>
Sent: Thursday, February 18, 2021 6:33:52 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Tasmota web timer action on sets on and immediately off

 

Hi, noobie here looking for assistance.

 

I am trying to set up timers on a Sonoff Basic via the Tasmota Timers page option and am finding that when I add an action with either ON or TOGGLE the connected light just blinks once. Looking in the console I see it is sending an ON immediately followed by an OFF. The OFF action works perfectly sending just the OFF.

 

From much googling I am wondering whether my Sonoffs have been set up as momentary switches and, if so, how I can set them back to toggle switches?

 

--
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/a9f872e9-9914-437d-94f8-2c8c8982ec4bn%40googlegroups.com.

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

Mark Scan4U

unread,
Feb 18, 2021, 2:33:35 AM2/18/21
to TasmotaUsers
{"Timer1":{"Enable":0,"Mode":0,"Time":"22:38","Window":0,"Days":"1111111","Repeat":0,"Output":1,"Action":1}}

Mark Scan4U

unread,
Feb 18, 2021, 2:36:19 AM2/18/21
to TasmotaUsers
Sorry that was from last night.

{"Timer1":{"Enable":1,"Mode":0,"Time":"22:38","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":1}}

Philip Knowles

unread,
Feb 18, 2021, 3:12:47 AM2/18/21
to Mark Scan4U, TasmotaUsers

Action1 is to turn the output on so that’s correct. It maybe that the GPIO14 ‘Switch’ is turning it back off. Try changing it to Button to see if it resolves it. I have changed all my light switches etc to ‘retractive switches’ and configure as buttons. Using switches and remote control can end up witches in the on position and lights off and vice versa

 

PS avoid using the term toggle switch. Just use switch for a device which stays in the position you put it into and button for a momentary one. It saves confusion with action 3 – toggle – and the action of a button which ‘toggles’ the output each time it’s pressed.

Mark Scan4U

unread,
Feb 18, 2021, 3:17:17 AM2/18/21
to TasmotaUsers
Noted - thanks for the heads up.

Changing to button didn't seem to help.

10:14:56 MQT: stat/LoadShedding/RESULT = {"Timer1":{"Enable":1,"Mode":0,"Time":"10:15","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":1}}
10:15:08 MQT: stat/LoadShedding/RESULT = {"POWER":"ON"}
10:15:08 MQT: stat/LoadShedding/POWER = ON
10:15:08 MQT: stat/LoadShedding/RESULT = {"POWER":"OFF"}
10:15:08 MQT: stat/LoadShedding/POWER = OFF

Mark Scan4U

unread,
Feb 18, 2021, 3:23:15 AM2/18/21
to TasmotaUsers
Some other info:
It does the same thing with a Sonoff Dual, so it isn't specific to the Basic. Could it be something to do with the Tasmota flashing?

Michael Ingraham

unread,
Feb 18, 2021, 7:14:23 AM2/18/21
to Mark Scan4U, TasmotaUsers
When you were going through the learning process as a newbie, did you happen to play with PulseTime? Or any of the blink settings?

Mark Scan4U

unread,
Feb 18, 2021, 7:23:29 AM2/18/21
to TasmotaUsers
No. I did try set up a trigger without much success

Mark Scan4U

unread,
Feb 18, 2021, 7:25:15 AM2/18/21
to TasmotaUsers
{"Rule1":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}

Mark Scan4U

unread,
Feb 18, 2021, 7:46:52 AM2/18/21
to TasmotaUsers
@Phil K - sorry, missed one of your messages.

No, I don't have a physical switch attached. The Sonoff Basic is attached inline, connected directly to an LED strip, located before a 12V transformer and is intended to be used as the switch for the strip.

Philip Knowles

unread,
Feb 18, 2021, 12:26:31 PM2/18/21
to Mark Scan4U, TasmotaUsers

I think I’d do a reset 5 and then remove the GPIO14 switch (which isn’t being used anyway).

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

 

From: Mark Scan4U
Sent: 18 February 2021 12:46
To: TasmotaUsers
Subject: Re: Tasmota web timer action on sets on and immediately off

 

@Phil K - sorry, missed one of your messages.

--

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.

Philip Knowles

unread,
Feb 18, 2021, 12:32:22 PM2/18/21
to Mark Scan4U, TasmotaUsers

Flummoxed. Perhaps try action2 which is Toggle. It looks like something else is turning it back off.

Mark Scan4U

unread,
Feb 18, 2021, 2:31:47 PM2/18/21
to TasmotaUsers
Success! Your suggestion to do a Reset 5 was the key. It looks like my changing the Device Name to "LoadShedding" caused the problem because leaving it as "Tasmota" seems to be the solution. Of course now I can't differentiate between my devices....

Mark Scan4U

unread,
Feb 18, 2021, 2:57:06 PM2/18/21
to TasmotaUsers
Sorry, it's actually seems to be changing the Topic not the Device Name that causes the problem so I am allowed to change the Device Name. It looks like the topic needs to start with "Tasmota"?

Philip Knowles

unread,
Feb 18, 2021, 3:37:49 PM2/18/21
to Mark Scan4U, TasmotaUsers

None of my devices have Tasmota as the Topic so it shouldn’t be that – but you may have had a retained MQTT message

Sonoff T1 2CH Module

LRLamp1

Program Version

9.2.0(tasmota)

Build Date & Time

2020-12-21T15:03:40

Core/SDK Version

2_7_4_9/2.2.2-dev(38a443e)

Uptime

33T23:15:14

Flash write Count

388 at 0xF7000

Boot Count

16

Restart Reason

Software/System restart

Friendly Name 1

LRLamp1-L

Friendly Name 2

LRLamp1-R

 

 

 

 

Hostname

LRLamp1

 

 

IP Address (wifi)

192.168.1.111

Gateway

192.168.0.1

Subnet Mask

255.255.0.0

DNS Server

192.168.0.1

 

MQTT Host

192.168.0.211

MQTT Port

1883

MQTT User

openHAB

MQTT Client

LRLamp1

MQTT Topic

LRLamp1

MQTT Group Topic 1

cmnd/lamps/

MQTT Full Topic

cmnd/LRLamp1/

MQTT Fallback Topic

cmnd/LRLamp1_fb/

MQTT No Retain

Disabled

Mark Scan4U

unread,
Feb 19, 2021, 1:14:57 AM2/19/21
to TasmotaUsers
It's strange because immediately after I ran the Reset 5 for the first time I changed all the names - device name; friendly name; topic name etc - back to what I had them before and the timer didn't work. I then reran Reset 5 again and never changed any of the names and the timer worked. So I changed the names one by one and when I changed the topic name it stopped working and when I changed it back again it worked again, hence my assumption it was the topic name. I have now changed the topic names to tasmota_<friendly name> and the timers still all work so I am going to leave them like that.
Reply all
Reply to author
Forward
0 new messages