pre-commit-ci[bot]
d5f6872fb6
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-22 10:56:29 +00:00
Meatballs1
90c81a61b8
Fix linting
2024-03-22 10:56:06 +00:00
Meatballs1
57549abbc6
Retrieve network and device details
2024-03-22 02:55:19 +00:00
pre-commit-ci[bot]
8b9caf045e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-20 23:41:09 +00:00
Meatballs1
f2707ed7e7
Merge branch 'main' into mqtt_lwt
2024-03-20 23:34:43 +00:00
Ben Campbell
3336885325
Use a copy of topics ( #29 )
...
Co-authored-by: Meatballs1 <ben.campbell@withsecure.com >
2024-03-20 23:16:34 +00:00
Meatballs1
612786a3c8
HA uses offline/online so will use that for LWT
2024-03-20 16:08:53 +00:00
Meatballs1
c89962de30
Add 20s delay on initial connect, and 60s for exception retries
2024-03-20 14:10:03 +00:00
Meatballs1
846b1abca0
Small typo
2024-03-20 14:03:27 +00:00
Meatballs1
7c460ccf8c
Merge branch 'mqtt_lwt' of github.com:Meatballs1/hcpy-2.0 into mqtt_lwt
2024-03-20 13:53:54 +00:00
Meatballs1
d6e26d0bfb
Fix linting
2024-03-20 13:53:35 +00:00
pre-commit-ci[bot]
a71c58208f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-20 13:51:02 +00:00
Meatballs1
6ce753dc11
Subscribe to activeProgram and move on_message
2024-03-20 13:50:16 +00:00
Meatballs1
8b0dd7f2e3
Merge branch 'main' into mqtt_lwt
2024-03-20 13:32:00 +00:00
Meatballs1
09d883582c
Improve MQTT disconnection handling
2024-03-20 13:25:16 +00:00
Meatballs1
7e66669365
Add some basic MQTT connectivity messages
2024-03-20 12:56:46 +00:00
Meatballs1
4a5449dbd6
Add online message
2024-03-20 12:14:40 +00:00
pre-commit-ci[bot]
9f3ce78f26
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-20 11:57:10 +00:00
Meatballs1
f127fce93f
Cleanup error checking and exceptions
2024-03-20 11:56:52 +00:00
Meatballs1
0e1094d9e8
Set MQTT LWT
2024-03-19 21:31:31 +00:00
pre-commit-ci[bot]
b1f20b82b5
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-19 21:11:57 +00:00
Meatballs1
ad2c7f11ea
Fix flake8 requirements
2024-03-19 21:11:40 +00:00
pre-commit-ci[bot]
2277c7c36f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-19 21:00:23 +00:00
Meatballs1
8f54490dbb
Working activeProgram messages
2024-03-19 20:48:48 +00:00
Meatballs1
bf168621f0
Initial attempt
2024-03-19 20:32:34 +00:00
p_magyar
60e6e657e5
fixed flake8 findings
2024-03-19 19:56:23 +01:00
pre-commit-ci[bot]
30e12f54ba
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-19 18:38:08 +00:00
Meatballs1
c1e777d840
Merge branch 'main' into mqtt_config
2024-03-19 17:06:21 +00:00
Meatballs1
5307f1cf40
Resolves more code review comments
2024-03-19 13:42:57 +00:00
Meatballs
69e12df430
Use a config.ini file
2024-03-19 12:20:25 +00:00
Meatballs
10dfc3df13
Add a default clientname for mqtt
2024-03-19 10:58:51 +00:00
Meatballs
d966126fac
Initial merge of Skon's PR
2024-03-19 10:58:21 +00:00
Kevin Temming
b7dae0a7c4
2023.9.12.1
2023-09-12 23:24:11 +02:00
Kevin Temming
18304c5fc2
Allow for posting to appliance
2023-07-07 15:44:43 +02:00
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