Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count Down Timers (Off Delay) does not work as expected #89

Closed
marekorok opened this issue Oct 2, 2020 · 4 comments
Closed

Count Down Timers (Off Delay) does not work as expected #89

marekorok opened this issue Oct 2, 2020 · 4 comments

Comments

@marekorok
Copy link

Hello,
would like to reopen #63 as seems does not work properly.
I would also first shutdown rpi gracefully, not killing it.

I do not give any delay and Power off is executed immediately.

Not sure if it's related to Tasmota version or else, I'm using 8.4.0

While testing found that plugin send 2 commands to Tasmota:
Delay 1200
Power Off

With such sequence Tasmota does not give any delay, Power off is executed immediately

16:58:10 CMD: delay 1200
16:58:10 MQT: stat/TasmotaOctoPrint/RESULT = {"Delay":1200}
16:58:12 CMD: power off
16:58:12 MQT: stat/TasmotaOctoPrint/RESULT = {"POWER1":"OFF"}
16:58:12 MQT: stat/TasmotaOctoPrint/POWER1 = OFF

Tested it manually through Tasmota console and confirmed the same behavior.

The proper way which works is using backlog command:
backlog; Delay 1200; Power Off

17:15:22 CMD: backlog; Delay 1200; Power Off
17:15:22 MQT: stat/TasmotaOctoPrint/RESULT = {"Delay":1200}
17:17:22 MQT: stat/TasmotaOctoPrint/RESULT = {"POWER1":"OFF"}
17:17:22 MQT: stat/TasmotaOctoPrint/POWER1 = OFF

Can this be fixed?

@jneilliii
Copy link
Owner

That's an interesting point, that is what I'm using assuming with use countdown timers.

if plug["use_backlog"] and int(plug["backlog_off_delay"]) > 0:

@jneilliii
Copy link
Owner

jneilliii commented Oct 2, 2020

I just upgraded my Tasmota to 8.5.1 (previously on 8.1.0) and tested and it does work as expected with the countdown timers option enabled. I think what you are seeing is the result of the backlog command, but not the actual backlog command.

image

@jneilliii
Copy link
Owner

You'll also notice in your own console results that there is a 2 minute delay between the delay command and the off command...

17:15:22 MQT: stat/TasmotaOctoPrint/RESULT = {"Delay":1200}
17:17:22 MQT: stat/TasmotaOctoPrint/RESULT = {"POWER1":"OFF"}

@marekorok
Copy link
Author

Yes,

I have shown how it supposed to work, that was manual command on Tasmota console.
From Tasmota plugin of Octoprint I got wrong, not working sequence.

But, I have fixed it by myself :-) removed the plugin, cleaned files and reinstalled it again

image

It's working now, sorry for bothering, looks like that some script stuck with some older version.
Should have done it before opening ticket, sorry for bothering and thank you for the great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants