1
0

CHANGELOG.md 4.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

2.0.0 - 2021-10-16

Added

  • command-line option --fetch-device-info enables battery level reports on topics homeassistant/cover/{switchbot,switchbot-curtain}/MAC_ADDRESS/battery-percentage after every command.
  • option --debug to change log level to DEBUG

Changed

  • changed default log level from DEBUG to INFO
  • shortened log format (revert with --debug)

Removed

  • compatibility with python3.5

1.1.0 - 2021-10-06

Added

  • command-line option --fetch-device-info enables reporting of curtain motors' position on topic homeassistant/cover/switchbot-curtain/MAC_ADDRESS/position after sending stop command.

1.0.0 - 2021-07-25

Added

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

0.7.0 - 2021-07-09

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

0.6.0 - 2020-12-19

Added

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

Changed

0.5.0 - 2020-11-22

Added

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

0.4.1 - 2020-06-18

Fixed

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

0.4.0 - 2020-06-14

Added

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

Fixed

  • Docker build: fix pipenv failing to create cache

0.3.0 - 2020-05-08

Added

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

0.2.0 - 2020-05-08

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)

0.1.0 - 2020-05-08

Added

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