Skip to content

MQTT plugin: schedule events thread-safely from paho callbacks - #2679

Open
alien43 wants to merge 1 commit into
AppDaemon:devfrom
alien43:mqtt-threadsafe-events
Open

alien43 wants to merge 1 commit into
AppDaemon:devfrom
alien43:mqtt-threadsafe-events

Conversation

@alien43

@alien43 alien43 commented Oct 12, 2026

Copy link
Copy Markdown

Paho runs on_connect/on_disconnect/on_message on its network thread. loop.create_task() from there doesn't wake the loop, so events waited for the next unrelated wakeup (up to ~1 s). Use run_coroutine_threadsafe.

Paho runs on_connect/on_disconnect/on_message on its network thread.
loop.create_task() from there doesn't wake the loop, so events waited
for the next unrelated wakeup (up to ~1 s). Use run_coroutine_threadsafe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant