Hi. I would like to perform an action from my ESPHome device @ 1800hrs each day… code below…
But I would also like to do the same action immediately on reboot / power on (and then continue at 1800hrs each day). What is a good way of doing that?
You could do the first one using on_time_synch:, this will execute when your time provider has connected and provided a time.
HOWEVER ESPHome will synch multiple times while running. If you want it done only once set a global variable you can check to see if you have already done the action.