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