-
Notifications
You must be signed in to change notification settings - Fork 638
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
Scheduler #1419
Comments
Sure that's an idea and it would fit into a more versatile schedule. One that could take into account different inputs like relay status, time of day (of course), sensor values,... |
I could propose you to participate in writing code. I'm not sure to be efficient on the GUI, but I could work on the scheduler itself. Do you agree? |
Hi, Don't you think it could be nonsense to use scheduler when using MQTT on Epurna? I forgot to clear the local Epurna Scheluder. Of course the scheduler and MQTT actions were working together! It takes me few minutes to understand I got a conflicting settings. What do you think about this? |
The scheduler works in parallel to any other means of switching the relays, that includes MQTT, the REST API or the physical button. The initial goal was to provide different options for the user (some will do MQTT, other prefer to have a standalone device (hence using the schedule). |
fwiw, current version does scan all declared schedules for the specified action target-id and launches the last one espurna/code/espurna/scheduler.cpp Line 65 in e22f67e
e22f67e#diff-e8b9a5d04af16462e032b4ceb5900c29571415364a39b566b9ca03ac55749fcf |
Closing, ref. #2417 |
I am using the scheduler on a Sonoff DUAL to turn on an equipment from hours (2AM to 6AM).
I have set 4 schedules, the first two ones are enable the last two are actually disabled, I will use it later.
Unfortunately The schedule seems not to start at 2AM, I was awake at this later time and had a check it. I turn it on manually.
I will procced some tests around this in the next days, to try to reproduce this issue, if so I will come back to you.
Working on this, I had the following Idea.
I think it could be interesting, to replace setting of independent schedule with the setting of sequence, each sequence should be a start time and an ending time. During the sequence the relay could be ON or OFF, depending of needs. With such approach, it could be possible to periodically check if the GPIO is in the right state regarding to an available sequence, and to activate it again in case of nonsense.
What do you think about this?
Regards
The text was updated successfully, but these errors were encountered: