That’s odd. Let me do some more test
I scheduled it 2 days ago and since then I restarted HA multiple times
I’ve just installed the addon in a brand new installation of HA, and it works without any error.
Can you give me more details? SimpleScheduler version, HA Version, other addons installed, new install or upgrade, and anything else could help me to figure it out.
The share folder is a HA system folder. The subfolder simplescheduler is created during addon installation (or rebuild) and it receives 777 permission…
So permission denied error is really odd…
Please, check the addon version: should be 0.13
according to the log the permission denied is from /var/www/html/lib.php and not simplescheduler, right?
No, that’s the file that execute the command.
The error is “failed to open stream: Permission denied” while trying to write the file /share/simplescheduler/sun.dat
Could you please check if the subfolder simplescheduler has been created under the share folder?
It’s there and +777
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.
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!
I have to set up an environment and try.
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?
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.