Fabian Peter Hammerle
|
8329e53782
require `PySwitchbot>=0.14.0,<0.41` instead of `PySwitchbot>=0.10.0,<0.13` & replace bluepy with bleak
|
hace 1 año |
Fabian Peter Hammerle
|
52764c2695
replace paho-mqtt with its async wrapper aiomqtt (to prepare for upgrading PySwitchbot)
|
hace 1 año |
Fabian Peter Hammerle
|
b7197cbc67
pylint: enable various optional checks/extensions
|
hace 2 años |
Fabian Peter Hammerle
|
4416a97213
refactor: move `_TOPIC_LEVELS_PREFIX` to `_MQTTCallbackUserdata.mqtt_topic_prefix` (to prepare parametrization via commmand-line argument)
|
hace 2 años |
Fabian Peter Hammerle
|
ef42e7c014
refactor: store topic levels in tuples instead of lists (see `_MQTTControlledActor._get_mqtt_message_callbacks`)
|
hace 2 años |
Fabian Peter Hammerle
|
c6bc41e1c3
add additional (internal) type hints to enable mypy's strict mode
|
hace 2 años |
Fabian Peter Hammerle
|
5c7d230a80
loosen version constraint to support PySwitchbot v0.11.0; update dev env & adapt tests for new PySwitchbot version
|
hace 3 años |
Fabian Peter Hammerle
|
383e1e9cce
refactor: move actor classes to switchbot_mqtt/_actors.py
|
hace 3 años |
Fabian Peter Hammerle
|
32c2b2364f
report curtain motor's battery level in topic `homeassistant/cover/switchbot-curtain/MAC_ADDRESS/battery-percentage` after every command
|
hace 3 años |
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)
|
hace 3 años |
Fabian Peter Hammerle
|
fcb34cee5e
drop compatibility with python3.5
|
hace 3 años |
Fabian Peter Hammerle
|
c7e77dc37f
refactor to remove duplicate definition of _CurtainMotor._MQTT_POSITION_TOPIC_LEVELS
|
hace 3 años |
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'`)
|
hace 3 años |
Fabian Peter Hammerle
|
0e9729f601
curtains: report position after sending stop command
|
hace 3 años |
Fabian Peter Hammerle
|
794d14c512
implement _CurtainMotor._report_position()
|
hace 3 años |
Fabian Peter Hammerle
|
f9cc568450
callbacks: add support for device passwords
|
hace 3 años |
Fabian Peter Hammerle
|
57906b1176
added command-line parameter `--retries` to alter maximum number of attempts to send a command to a SwitchBot device
|
hace 3 años |
Fabian Peter Hammerle
|
44f2706bde
add support for switchbot curtain motors
|
hace 4 años |