|
fix: add on_connect callback to resubscribe MQTT on reconnect
ibsystem2mqtt_v5.py previously subscribed to ibsystem/+/+/set/# only once at startup. When paho-mqtt auto-reconnected (e.g. TCP keep-alive timeout after 3 days), subscriptions were NOT restored, causing all switch commands to be silently dropped (messages_received stayed at 15). Fix: Added on_connect callback that resubscribes on every (re)connection. Tested: commands_executed: 2, messages_received: 2 after restart. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
|---|
|
0 parent
commit 8294db23830b65b88fdffcdd0e39fed848ffdbed
|
| .gitignore 0 → 100644 |
|---|
| ibsystem2mqtt.yaml 0 → 100644 |
|---|
| ibsystem2mqtt_v5.py 0 → 100755 |
|---|
| ibsystem_dashboard.yaml 0 → 100644 |
|---|
| sync_names.py 0 → 100755 |
|---|
| watchdog.sh 0 → 100755 |
|---|