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 жил өмнө |
Fabian Peter Hammerle
|
f6be995e7a
refactor: split `_MQTTControlledActor` into new switchbot_mqtt/_actors/_base.py
|
3 жил өмнө |
Fabian Peter Hammerle
|
383e1e9cce
refactor: move actor classes to switchbot_mqtt/_actors.py
|
3 жил өмнө |
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 жил өмнө |
Fabian Peter Hammerle
|
fcb34cee5e
drop compatibility with python3.5
|
3 жил өмнө |
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'`)
|
3 жил өмнө |
Fabian Peter Hammerle
|
5dc3fc3b75
added command-line param `--device-password-file`
|
3 жил өмнө |
Fabian Peter Hammerle
|
f9cc568450
callbacks: add support for device passwords
|
3 жил өмнө |
Fabian Peter Hammerle
|
57906b1176
added command-line parameter `--retries` to alter maximum number of attempts to send a command to a SwitchBot device
|
3 жил өмнө |
Fabian Peter Hammerle
|
c6a19b7cb9
refactor _MQTTControlledActor: split method _mqtt_publish from report_state
|
3 жил өмнө |
Fabian Peter Hammerle
|
607019f8fc
log subscribed mqtt topics
|
3 жил өмнө |
Fabian Peter Hammerle
|
44f2706bde
add support for switchbot curtain motors
|
3 жил өмнө |
Fabian Peter Hammerle
|
7ff05ba3f2
dev env: upgrade black
|
4 жил өмнө |
Fabian Peter Hammerle
|
38e23ba811
tests / python3.5: fix AttributeError due to unavailable MagicMock.assert_called_once
|
4 жил өмнө |
Fabian Peter Hammerle
|
087dc684f9
test mqtt: disable irrelevant too-many-arguments check
|
4 жил өмнө |
Fabian Peter Hammerle
|
7fce0c4545
_report_state; adapt logging; no longer wait for publish (froze)
|
4 жил өмнө |
Fabian Peter Hammerle
|
ce8cf8c8bf
publish new state to homeassistant/switch/switchbot/MAC_ADDRESS/state on success
|
4 жил өмнө |
Fabian Peter Hammerle
|
396e3423ec
added command line parameters --mqtt-username and --mqtt-password
|
4 жил өмнө |
Fabian Peter Hammerle
|
e5104d4851
fix import order
|
4 жил өмнө |
Fabian Peter Hammerle
|
421c928905
test _mqtt_on_message callback
|
4 жил өмнө |
Fabian Peter Hammerle
|
040db05101
refactor: split _run from _main; added tests
|
4 жил өмнө |