Skip to content
Discussion options

You must be logged in to vote

If the script you posted is the whole script, then it's going to stop as soon as it sends that first message. You also have to await device.wait_until_authenticated_or_error(raise_on_error=True) and set up an event to wait until you do something with it, otherwise the application just exists as it's not waiting for anything.

I do have few scripts you can use outside of HA that you can use as an example:

Both runnable using uv script as uv run connect.py.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@GnoX
Comment options

GnoX Feb 16, 2026
Collaborator

Answer selected by Kotsiubynskyi
Comment options

You must be logged in to vote
2 replies
@GnoX
Comment options

GnoX Feb 16, 2026
Collaborator

@Kotsiubynskyi
Comment options

Comment options

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