Skip to content

state_trigger doesn't work but time_trigger and state_status do #692

Answered by agambier
agambier asked this question in Q&A

You must be logged in to vote

I've been able to solve it myself.

The pyscript documentation mentions we can configure pyscript using the UI or by editing the configuration.yaml file.
https://hacs-pyscript.readthedocs.io/en/latest/configuration.html#

I did it use the UI...

But it doesn't work. I edited the configuration.yaml file to add...

pyscript:
  allow_all_imports: true
  hass_is_global: true

then I restarted homeassistant and now it works !

So i guess the UI configuration does not work.

there was warnings in the logs and I now I understant it was related to this issue.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by agambier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant