Switch & Manual Override

Hello
I use Node Red to control all of my switches. I’ve come to realize that if I turn on the switch, via HA dashboard, something will timeout and turn the switch off. This only occurs if I try and turn the switch on outside of programmed hours. For example:

Node Red via “Big Timer” = switch on 1800 / switch off 2000
Manually turn on = 1300
Times out and turns off about 30 seconds after manually being turned on

If I disable the Node Red “Big Timer” for that particular switch, something is still turning it off after 30 seconds. Any ideas? Nothing seems to show up in the console of the Tasmota switch. All I see is a “Power Off” .

Thanks in advance for any help that can be provided.

Look for context in the logbook entries.

Thanks for the help. Unfortunately I don’t think it answers my question. I’m trying to figure out how the lamp was turned off; not by what. So in my example the dining room lamp was turned off by azlan. This was done automatically without any input from me. That’s the bit I’m trying to figure out. I don’t want the lamp to be turned off; I want it to remain on, but something from HA is sending an “off” message to the lamp via MQTT / Tasmota.

They are the same things. If it was turned off by an automation you now know how it was turned off, by an automation. Then you look at how that automation was triggered.

The context has narrowed down the possibilities. If it had said “by supervisor” you would know it was Node Red. Now you know it is not Node Red or an automation.

As you are using mqtt I suspect it may be because of retained messages. See:

Hello. Thanks for the video link. I tried some of the suggestions in the video, however there wasn’t an improvement. Do you know if there is a MQTT logger available for download? I found this web page but I don’t have any experience with logging MQTT information.

It’s a very popular mqtt debugging tool and logs topics you watch.

Hello

I’ve got the lamp working the way I want it to. Thanks for the help.

I use Node Red to control the lamp. In order to troubleshoot my issue I added the “debug” node to my entry.

With the debug node installed and the messaging coming through, I can see an “off” command being sent out every 30 seconds or so.

image

I remembered reading about the repeat command and how in the “Big Timer” node settings, if this was turned on, then the last command would be sent out repeatedly. In my case the last command was an “off” and so this was being sent every 30 seconds.

All I had to do was uncheck the “repeat output" option, clear the debug messaging outputs and now we can see no “off” commands are being sent.

image