Fabian Peter Hammerle
|
9d8a18c183
fix ineffective last will message setting (by disabling birth & last will on `homeassistant/switchbot_mqtt/status`)
|
2 years ago |
Fabian Peter Hammerle
|
9947875774
fix topic of birth & last will message `homeassistant/{switchbot_mqtt->switchbot-mqtt}/status` (old kept for backward compatibility)
|
2 years ago |
Fabian Peter Hammerle
|
ed7f106a95
document new birth & last will message in readme & changelog; extend tests; refactor
|
2 years ago |
Philipp Basler
|
7bd771b517
Added retain flag to Birth and LWT
|
2 years ago |
Philipp Basler
|
b393048062
format with black
|
2 years ago |
Philipp Basler
|
e5e12fccd9
add prefix to status topic
|
2 years ago |
Philipp Basler
|
e3e8f0f0b2
Change to "status" topic
|
2 years ago |
Philipp Basler
|
3010853d51
Update switchbot_mqtt/__init__.py
|
2 years ago |
Philipp Basler
|
0855bdbc60
Update switchbot_mqtt/__init__.py
|
2 years ago |
Philipp Basler
|
be37ef7b37
Update switchbot_mqtt/__init__.py
|
2 years ago |
Philipp Basler
|
d08df9ecf9
renamed to availibility_topic
|
2 years ago |
Philipp Basler
|
abc512515b
Add birth and LWT Message
|
2 years ago |
Fabian Peter Hammerle
|
659eef7697
fix `ValueError: too many values to unpack` when connecting to MQTT broker via IPv6
|
2 years ago |
Fabian Peter Hammerle
|
dce4e5601e
refactor: add param `mqtt_topic_prefix` to internal function `_run`
|
2 years ago |
Fabian Peter Hammerle
|
680dc5e6bb
refactor: rename module `switchbot_mqtt/_actors/{_base->base}` (cause accessed by outer `switchbot_mqtt` & `switchbot_mqtt._cli`)
|
2 years ago |
Fabian Peter Hammerle
|
4416a97213
refactor: move `_TOPIC_LEVELS_PREFIX` to `_MQTTCallbackUserdata.mqtt_topic_prefix` (to prepare parametrization via commmand-line argument)
|
2 years ago |
Fabian Peter Hammerle
|
965ca2646e
indicate in log message whether TLS is enabled
|
2 years ago |
Fabian Peter Hammerle
|
22ef4b6299
internal function `_run`: add parameter to enable/disable TLS
|
2 years ago |
Fabian Peter Hammerle
|
c6bc41e1c3
add additional (internal) type hints to enable mypy's strict mode
|
2 years ago |
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 years ago |
Fabian Peter Hammerle
|
f6be995e7a
refactor: split `_MQTTControlledActor` into new switchbot_mqtt/_actors/_base.py
|
3 years ago |
Fabian Peter Hammerle
|
383e1e9cce
refactor: move actor classes to switchbot_mqtt/_actors.py
|
3 years ago |
Fabian Peter Hammerle
|
cf6dfff0d1
refactor: move a few definitions to switchbot_mqtt/_utils.py
|
3 years ago |
Fabian Peter Hammerle
|
2468700b4a
refactor: move `_main` to switchbot_mqtt/_cli.py
|
3 years ago |
Fabian Peter Hammerle
|
ef51646189
`--fetch-device-info` can now alternatively be enabled by setting env var `FETCH_DEVICE_INFO`
|
3 years ago |
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 years ago |
Fabian Peter Hammerle
|
de6d509bdd
change default log level from `DEBUG` to `INFO`; added option `--debug`
|
3 years ago |
Fabian Peter Hammerle
|
4feeb7a56d
report button automator's battery level in topic `homeassistant/cover/switchbot/MAC_ADDRESS/battery-percentage` after every command
|
3 years ago |
Fabian Peter Hammerle
|
32c2b2364f
report curtain motor's battery level in topic `homeassistant/cover/switchbot-curtain/MAC_ADDRESS/battery-percentage` after every command
|
3 years ago |
Fabian Peter Hammerle
|
592cdec215
refactor: moved invocation of `switchbot.SwitchbotDevice.update` to new method `_MQTTControlledActor._get_device` (to prepare retrieval of battery state for button automators)
|
3 years ago |