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