I would like to make my automations more dynamic and useable by my wife.
Therefore I would like to use dynamic offsets.
e.g. the garden light turns on 15 minutes before sunset.
I would like to change that to be “state of an input_number” before sunset.
Will AppDaemon recognize changes on the input_number value and reschedule the callback?
If not, can I force it to do somehow when the state of the input_number changes?
if you change things near the sunrise or sunset you would need to take into account that things go wrong anyway.
settings like that are normally not to change regularly
you change them once in a while and provide a manual override for if you have a specific occasion.
your wife probably has no clue what the exact times are for sunset and sunrise.
whit your approach she could change the offset from 15 mins to 30 mins while at that moment there is only 25 mins to go.
the result would be that it wont be triggered at all that day.
so you would have to tell her: “dont change anything when sunrise or sunset is near or it might fail that day”
and then you are at the same point as with my approach.
but why do you want to make a daily event that flexible?
give the option to override the running schedule for 1 day with another app.
use a constraint fort the running app and set that in the other app.
and when the day is over set the constraint back.