You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you, @ALERTua but I need the trigger a HA built-in automation on reload.
I want to create python scripts with no or minimum HA or pyscript specific code so I can unit test them outside HA.
So I am creating HA automations that collects states and attributes and call the pyscript as a service.
The pysript is returning it's output using the new response_variable feature.
And the HA automation is then updating relevant entities..
As a workaround I use the folder_watcher sensor but it triggers too fast so I have to add an artificial delay to wait for the reload.
Per @ALERTua 's suggestion - can't the pyscript call-on-reload function do something than can then trigger an HA built-in automation? Eg, it could set an entity or call a service?
When a pyscript is updated the reload is logged as
in the log.
I would like to trigger a HA automation when I update a pyscript.
How can I listen to/trigger based on the reloaded event?
The text was updated successfully, but these errors were encountered: