Skip to content

Releases: fphammerle/switchbot-mqtt

device passwords

25 Jul 05:40
v1.0.0
c369e60
Compare
Choose a tag to compare

Added

  • support for password-protected switchbot devices
    via optional command-line parameter --device-password-file
    (json file mapping mac addresses to the respective password)

retry

09 Jul 12:05
v0.7.0
8968ddc
Compare
Choose a tag to compare

Added

  • Command-line parameter --retries to alter maximum number of attempts to send a command
    to a SwitchBot device (default unchanged)

Fixed

  • Dockerfile: split pipenv install into two stages to speed up image builds
  • Dockerfile: chmod files copied from host to no longer require o=rX perms on host
  • Dockerfile: add registry to base image specifier for podman build
  • Dockerfile: add --force flag to rm invocation to avoid interactive questions while running podman build

curtains

19 Dec 16:36
v0.6.0
5a49b24
Compare
Choose a tag to compare

Added

  • Control SwitchBot Curtain motors via OPEN, CLOSE, and STOP on topic homeassistant/cover/switchbot-curtain/aa:bb:cc:dd:ee:ff/set

Changed

docker env

22 Nov 21:26
v0.5.0
d189ced
Compare
Choose a tag to compare

Added

  • Docker image: support parametrization via environment variables
    (MQTT_HOST, MQTT_PORT, MQTT_USERNAME & MQTT_PASSWORD)

python3.5 compatibility

18 Jun 12:44
v0.4.1
5565d0a
Compare
Choose a tag to compare

Fixed

  • Compatibility with python3.5:
    • Replaced PEP526-style variable type hint with PEP484-compatible
    • Tests: Fixed AttributeError due to unavailable MagicMock.assert_called_once

mqtt password file

14 Jun 09:24
v0.4.0
db45a5b
Compare
Choose a tag to compare

Added

  • Added command line parameter --mqtt-password-file

Fixed

  • Docker build: fix pipenv failing to create cache

publish state

08 May 21:24
v0.3.0
affa645
Compare
Choose a tag to compare

Added

  • Publish new state to homeassistant/switch/switchbot/MAC_ADDRESS/state on success

authentication

08 May 12:43
v0.2.0
5253c31
Compare
Choose a tag to compare

Added

  • Added command line parameters --mqtt-username and --mqtt-password

Fixed

  • Fixed executable name in command line help
  • Docker: no longer require build arg SWITCHBOT_MQTT_VERSION
    (fixes auto build on hub.docker.com)

first draft

08 May 10:31
v0.1.0
201d602
Compare
Choose a tag to compare
v0.1.0

Subscribe to homeassistant/switch/switchbot/+/set. Handle ON and OFF …