Daniel Lashua
Daniel Lashua
I don't really use the `areas` features of Home Assistant. However, the few times I've tried to mess with them, my pyscript code looked very similar to yours, so I...
This is short, clean code! Since these functions are not using any of the pyscript language features, you could decorate them with `@pyscript_compile` which should make the list comprehensions work...
I would upload the code to a github repo and then mention it in the wiki. That way people can find it if they need it.
Please review the docs https://hacs-pyscript.readthedocs.io/en/stable/reference.html#state-trigger It is difficult to understand what you're asking for, however, if I am understanding you correctly, this is working exactly as expected. `var_name` will be...
The Home Assistant API is likely the way to go. You shared the error, but not the code that produced it. If you share the code, someone can probably help.
Also, when you said "HA api" I assumed you meant the Internal API. Using the "Client" is accessing the External API. There's nothing wrong with either way, though, as Craig...
This is interesting! It feels like it might be a bug, but I can't quite tell where the bug is. The "blocking=True" portion of this is not a pyscript feature....
Because it's a "map" (or "object" in JSON, "dict" in Python) it's a mutable object. This means the only way to compare it is to "walk the tree" and compare...
For me, I think it works just fine that `@state_trigger` has extra features to help only trigger when there's actually a change, while `@event_trigger` on "state_changed" means every state change...
I have managed to work around this with some ugly code... Every time a script uses a module function that creates a trigger function, that module function also takes a...