Simple Scheduler Addon

Unesplicable.
Is there anything in /share/simplescheduler ?
Are you able to create schedules? Does it create JSON files inside /share/simplescheduler folder?

One json with my only schedule, a txt with log and sun.dat

Word of the day.

I encourage everyone to slip it in to casual conversation.

It seems to be working… Please, create more schedules and test them. The error is still there?

Sorry… I mispelled. I’m not a native language speaker. :stuck_out_tongue_winking_eye:

The right word is Inexplicable

Thank you for sharing this component. I run Homeassistant Core in docker so I tried to build using your dockerfile.
It didnt complete as it crashed with an error related to Postgres dB exceeding the docker img file size.
Any guidance to build own image is much appreciated.

I reinstalled 2 times and it is working now. odd!

1 Like

I have to set up an environment and try.

1 Like

WOW, was using schedy till now will have this a try for some family friendly stuff.

how does this behave when hass was down at the time the schedule was about to change (or the entity was not reachable at that time) will it recalculate at any other time such as schedy does?

1 Like

Fantastic addon, thanks! All of my schedules using times work perfectly but I can’t get them to work with sunset. Error in scheduler.log:

Fatal error: Uncaught TypeError: Argument 1 passed to save_sunset_sunrise() must be of the type array, null given, called in /var/www/html/lib.php on line 43 and defined in /var/www/html/lib.php:211
Stack trace:
#0 /var/www/html/lib.php(43): save_sunset_sunrise(NULL)
#1 /var/www/html/lib.php(200): get_switch_list()
#2 /var/www/html/scheduler.php(18): get_sunset_sunrise()
#3 {main}
  thrown in /var/www/html/lib.php on line 211

Sadly no. If HA was dawn during the trigger time, the schedule won’t be executed.

I’m trying to workaround this. It is not clear why this is happening to someone.
Next version will be released in a couple of days.

Hello

I`m getting this msg when I click on Schedule

“Warning: file_put_contents(/share/simplescheduler/sun.dat): failed to open stream: Permission denied in /var/www/html/lib.php on line 221”

any idea what to do? The scheduler is not working.

OK it is fixed, I just stopped and started again the ADDON. it works now.

GREAT ADDON, it should have been part of HA 7 years ago.

2 Likes

NEW RELEASE 0.14

  • Fix the “permission denied” issue
  • Sortable Columns
  • Added status bar with scheduler engine status
  • Added “debug option” to see all the error messages
  • various bugfixes/improvements

Also, there is a hidden feature: clicking in a secret place, you can open the engine log in a modal window, instead of browsing the shared folder. I can’t tell you where, because it is a hidden secret feature :rofl: :rofl: :rofl:

Note: this release has modifications in CSS and JS files, so it could happen that your browser would keep using the cached files. If you see something strange or something missing, just force the reload of the page (CTRL+F5) or empty the cache.

1 Like

Good day, dont forget us plain docker mortals :grinning:

1 Like

is there a way to set a “retry count”? unfortunately the automatic does not always work. i had to set a higher interval in schedy so that all switches and lights react

This setting tells Schedy how often it should try sending a
value to the actor. If the actor reports the set value back, no
further retry is made. You may find this useful if the connection
between Home Assistant and your actor is unreliable. Set to 0 in
order to disable retrying entirely.
send_retries: 10
How many seconds to wait before retrying.
send_retry_interval: 30

Mmmhhh… Actually there isn’t.
You could add a check in the automation after a “wait” condition to be sure that the command was executed succesfully.

Hi

Any idea why it is picking up different time zone to execute the schedules ?

It takes the timezone from HA.
Have you set the timezone in HA → Settings → General ?

Somehow the time is wrong. It must have happened with one of the latest releases. It’s always one hour behind. Schedy is at the right time. For example „Sofalampe“ is defined to switch on at 6am. In reality it switches on at 7am.