Fabian Peter Hammerle
|
6a4b722b53
upgrade black from 23.12.1 to 24.1.0
|
11 mesi fa |
Fabian Peter Hammerle
|
52764c2695
replace paho-mqtt with its async wrapper aiomqtt (to prepare for upgrading PySwitchbot)
|
1 anno fa |
Fabian Peter Hammerle
|
fcc1d17a62
pylint: disable "too-many-arguments" warning locally
|
1 anno fa |
Fabian Peter Hammerle
|
9d8a18c183
fix ineffective last will message setting (by disabling birth & last will on `homeassistant/switchbot_mqtt/status`)
|
2 anni fa |
Fabian Peter Hammerle
|
9947875774
fix topic of birth & last will message `homeassistant/{switchbot_mqtt->switchbot-mqtt}/status` (old kept for backward compatibility)
|
2 anni fa |
Fabian Peter Hammerle
|
ed7f106a95
document new birth & last will message in readme & changelog; extend tests; refactor
|
2 anni fa |
Philipp Basler
|
7bd771b517
Added retain flag to Birth and LWT
|
2 anni fa |
Philipp Basler
|
b393048062
format with black
|
2 anni fa |
Philipp Basler
|
e5e12fccd9
add prefix to status topic
|
2 anni fa |
Philipp Basler
|
e3e8f0f0b2
Change to "status" topic
|
2 anni fa |
Philipp Basler
|
3010853d51
Update switchbot_mqtt/__init__.py
|
2 anni fa |
Philipp Basler
|
0855bdbc60
Update switchbot_mqtt/__init__.py
|
2 anni fa |
Philipp Basler
|
be37ef7b37
Update switchbot_mqtt/__init__.py
|
2 anni fa |
Philipp Basler
|
d08df9ecf9
renamed to availibility_topic
|
2 anni fa |
Philipp Basler
|
abc512515b
Add birth and LWT Message
|
2 anni fa |
Fabian Peter Hammerle
|
659eef7697
fix `ValueError: too many values to unpack` when connecting to MQTT broker via IPv6
|
2 anni fa |
Fabian Peter Hammerle
|
dce4e5601e
refactor: add param `mqtt_topic_prefix` to internal function `_run`
|
2 anni fa |
Fabian Peter Hammerle
|
680dc5e6bb
refactor: rename module `switchbot_mqtt/_actors/{_base->base}` (cause accessed by outer `switchbot_mqtt` & `switchbot_mqtt._cli`)
|
2 anni fa |
Fabian Peter Hammerle
|
4416a97213
refactor: move `_TOPIC_LEVELS_PREFIX` to `_MQTTCallbackUserdata.mqtt_topic_prefix` (to prepare parametrization via commmand-line argument)
|
2 anni fa |
Fabian Peter Hammerle
|
965ca2646e
indicate in log message whether TLS is enabled
|
2 anni fa |
Fabian Peter Hammerle
|
22ef4b6299
internal function `_run`: add parameter to enable/disable TLS
|
2 anni fa |
Fabian Peter Hammerle
|
c6bc41e1c3
add additional (internal) type hints to enable mypy's strict mode
|
2 anni fa |
Fabian Peter Hammerle
|
7b25b3a3ec
update & report device info when receiving msg on `homeassistant/{switch/switchbot,cover/switchbot-curtain}/MAC_ADDRESS/request-device-info` (requires `--fetch-device-info`)
|
3 anni fa |
Fabian Peter Hammerle
|
f6be995e7a
refactor: split `_MQTTControlledActor` into new switchbot_mqtt/_actors/_base.py
|
3 anni fa |
Fabian Peter Hammerle
|
383e1e9cce
refactor: move actor classes to switchbot_mqtt/_actors.py
|
3 anni fa |
Fabian Peter Hammerle
|
cf6dfff0d1
refactor: move a few definitions to switchbot_mqtt/_utils.py
|
3 anni fa |
Fabian Peter Hammerle
|
2468700b4a
refactor: move `_main` to switchbot_mqtt/_cli.py
|
3 anni fa |
Fabian Peter Hammerle
|
ef51646189
`--fetch-device-info` can now alternatively be enabled by setting env var `FETCH_DEVICE_INFO`
|
3 anni fa |
Fabian Peter Hammerle
|
32c3391404
report battery level of button automators on expected topic `homeassistant/switch/switchbot/MAC_ADDRESS/battery-percentage` (commit 4feeb7a56d99d2a3b3649c027a150157d2678b2c introduced report on unexpected topic)
|
3 anni fa |
Fabian Peter Hammerle
|
de6d509bdd
change default log level from `DEBUG` to `INFO`; added option `--debug`
|
3 anni fa |