Fabian Peter Hammerle
|
8329e53782
require `PySwitchbot>=0.14.0,<0.41` instead of `PySwitchbot>=0.10.0,<0.13` & replace bluepy with bleak
|
vor 1 Jahr |
Fabian Peter Hammerle
|
52764c2695
replace paho-mqtt with its async wrapper aiomqtt (to prepare for upgrading PySwitchbot)
|
vor 1 Jahr |
Fabian Peter Hammerle
|
9d8a18c183
fix ineffective last will message setting (by disabling birth & last will on `homeassistant/switchbot_mqtt/status`)
|
vor 2 Jahren |
Fabian Peter Hammerle
|
9947875774
fix topic of birth & last will message `homeassistant/{switchbot_mqtt->switchbot-mqtt}/status` (old kept for backward compatibility)
|
vor 2 Jahren |
Fabian Peter Hammerle
|
ed7f106a95
document new birth & last will message in readme & changelog; extend tests; refactor
|
vor 2 Jahren |
Fabian Peter Hammerle
|
659eef7697
fix `ValueError: too many values to unpack` when connecting to MQTT broker via IPv6
|
vor 2 Jahren |
Fabian Peter Hammerle
|
68fa589b99
add test for _mqtt_on_connect
|
vor 2 Jahren |
Fabian Peter Hammerle
|
b7197cbc67
pylint: enable various optional checks/extensions
|
vor 2 Jahren |
Fabian Peter Hammerle
|
dce4e5601e
refactor: add param `mqtt_topic_prefix` to internal function `_run`
|
vor 2 Jahren |
Fabian Peter Hammerle
|
680dc5e6bb
refactor: rename module `switchbot_mqtt/_actors/{_base->base}` (cause accessed by outer `switchbot_mqtt` & `switchbot_mqtt._cli`)
|
vor 2 Jahren |
Fabian Peter Hammerle
|
4416a97213
refactor: move `_TOPIC_LEVELS_PREFIX` to `_MQTTCallbackUserdata.mqtt_topic_prefix` (to prepare parametrization via commmand-line argument)
|
vor 2 Jahren |
Fabian Peter Hammerle
|
965ca2646e
indicate in log message whether TLS is enabled
|
vor 2 Jahren |
Fabian Peter Hammerle
|
22ef4b6299
internal function `_run`: add parameter to enable/disable TLS
|
vor 2 Jahren |
Fabian Peter Hammerle
|
ef42e7c014
refactor: store topic levels in tuples instead of lists (see `_MQTTControlledActor._get_mqtt_message_callbacks`)
|
vor 2 Jahren |
Fabian Peter Hammerle
|
1a9a7d4722
subscribe to topic `homeassistant/cover/switchbot-curtain/+/position/set-percent`
|
vor 2 Jahren |
Fabian Peter Hammerle
|
c6bc41e1c3
add additional (internal) type hints to enable mypy's strict mode
|
vor 2 Jahren |
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`)
|
vor 3 Jahren |
Fabian Peter Hammerle
|
f6be995e7a
refactor: split `_MQTTControlledActor` into new switchbot_mqtt/_actors/_base.py
|
vor 3 Jahren |
Fabian Peter Hammerle
|
383e1e9cce
refactor: move actor classes to switchbot_mqtt/_actors.py
|
vor 3 Jahren |
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)
|
vor 3 Jahren |
Fabian Peter Hammerle
|
fcb34cee5e
drop compatibility with python3.5
|
vor 3 Jahren |
Fabian Peter Hammerle
|
90d274d00c
added option `--fetch-device-info` to toggle reporting of curtain motor's position (can't enable by default due to `bluepy.btle.BTLEManagementError: Failed to execute management command 'le on'`)
|
vor 3 Jahren |
Fabian Peter Hammerle
|
5dc3fc3b75
added command-line param `--device-password-file`
|
vor 3 Jahren |
Fabian Peter Hammerle
|
f9cc568450
callbacks: add support for device passwords
|
vor 3 Jahren |
Fabian Peter Hammerle
|
57906b1176
added command-line parameter `--retries` to alter maximum number of attempts to send a command to a SwitchBot device
|
vor 3 Jahren |
Fabian Peter Hammerle
|
c6a19b7cb9
refactor _MQTTControlledActor: split method _mqtt_publish from report_state
|
vor 3 Jahren |
Fabian Peter Hammerle
|
607019f8fc
log subscribed mqtt topics
|
vor 3 Jahren |
Fabian Peter Hammerle
|
44f2706bde
add support for switchbot curtain motors
|
vor 3 Jahren |
Fabian Peter Hammerle
|
7ff05ba3f2
dev env: upgrade black
|
vor 4 Jahren |
Fabian Peter Hammerle
|
38e23ba811
tests / python3.5: fix AttributeError due to unavailable MagicMock.assert_called_once
|
vor 4 Jahren |