HA Scheduler Addon

Hello.
is it possible to use a sensor value to set a time?
as in the picture below.
thank you.

Hi @pod,
It is not possible at moment and i can’t add this features because the addon set all schedule activity once a day (startup or new day) if you use a dynamic sensor maybe the value can change during a day and the schedule will not update the new trigger time. (There is no demon to intercept these situation).
Thanks.

Addon doesn’t work correctly after update.


* Debug mode: off
 * Running on http://0.0.0.0:8099/ (Press CTRL+C to quit)
Traceback (most recent call last):
  File "/home/daemon.py", line 380, in <module>
    t = time.strptime(date, "%Y-%m-%d %H:%M:%S")
  File "/usr/lib/python3.8/_strptime.py", line 562, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "/usr/lib/python3.8/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '2021-05-09 00:38' does not match format '%Y-%m-%d %H:%M:%S'

i have made a commit can you please reinstall the addon and give me a feedback? Thanks

I did that many times, but timers didn’t work. Later I saved my schedulers one more time and they become work. My timers used sunsets.

After reinstall PID was “0” when I push refresh it became some

Can you check into log of addon and send me if there is an error ?

Everything looks fine. Thanks. I think that time format in HASS was changed and my schedulers were saved in old format and after I re-saved them, they wrote in new format.

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 00-banner.sh: executing…

Add-on: HA Scheduler
Home Assistant scheduler

Add-on version: 0.16
You are running the latest version of this add-on.
System: Home Assistant OS 5.13 (amd64 / qemux86-64)
Home Assistant Core: 2021.5.1
Home Assistant Supervisor: 2021.04.3

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to WARNING
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Daemon Start

  • Serving Flask app “app” (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:8099/ (Press CTRL+C to quit)
    172.30.32.2 - - [09/May/2021 17:51:31] “GET / HTTP/1.1” 200 -
    172.30.32.2 - - [09/May/2021 17:51:42] “GET / HTTP/1.1” 200 -
    172.30.32.2 - - [09/May/2021 17:51:46] “GET / HTTP/1.1” 200 -

Blockquote

Hi, I just found this awesome Addon,
Version 0.17 works great. The only thing I could not figure out is the possibility to switch schedules on/off depending on other states (like who is home) or switch the schedules on/off with another addon like node-red or by automations, am I missing something here?
thanks

Hi,
you can use this service to activate or deactivate a scheduels.

Thanks.