Commit Graph

6 Commits

Author SHA1 Message Date
Thijs
81c0a55ba5 Add client.loop_forever() for auto-reconnect
Even though hc2mqtt was running, and showed active log lines, I stopped receiving the messages sometimes in the MQTT server and subscribed processes.
Adding client.loop_forever() will auto-reconnect to the mqtt server in case of network loss / hickups. Seems to help for my setup.
Docs: https://pypi.org/project/paho-mqtt/#network-loop
2023-04-01 12:28:47 +02:00
Jasper Seidel
8ab7997519 feat: refactor hc2mqtt to take config as cli args, add click to requirements 2022-10-07 16:59:41 +02:00
Trammell Hudson
b852cfd2b8 hc-login and hc2mqtt work together to allow device monitoring 2022-02-19 19:00:29 +01:00
Trammell Hudson
1ed68f4d1a hc2mqtt: format remaining time, print a publish message 2022-02-06 15:21:01 +01:00
Trammell Hudson
87914adffa hc2mqtt: create a thread per device 2022-02-06 14:27:56 +01:00
Trammell Hudson
c6407d2a28 hc2mqtt: connect the programs to the mqtt server 2022-02-06 14:24:15 +01:00