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.
--fetch-device-info
can alternatively be enabled by assigning a non-empty value
to the environment variable FETCH_DEVICE_INFO
homeassistant/switch/switchbot/MAC_ADDRESS/battery-percentage
(old topic kept for downward compatibility)--fetch-device-info
enables battery level reports on topics
homeassistant/cover/{switchbot,switchbot-curtain}/MAC_ADDRESS/battery-percentage
after every command.--debug
to change log level to DEBUG
DEBUG
to INFO
--debug
)python3.5
--fetch-device-info
enables reporting of curtain motors'
position on topic homeassistant/cover/switchbot-curtain/MAC_ADDRESS/position
after sending stop command.--device-password-file
(json file mapping mac addresses to the respective password)--retries
to alter maximum number of attempts to send a command
to a SwitchBot device (default unchanged)pipenv install
into two stages to speed up image buildschmod
files copied from host to no longer require o=rX
perms on hostpodman build
--force
flag to rm
invocation to avoid interactive questions while running podman build
OPEN
, CLOSE
, and STOP
on topic homeassistant/cover/switchbot-curtain/aa:bb:cc:dd:ee:ff/set
paho-mqtt
to no longer suppress exceptions occuring in mqtt callbacks
( https://github.com/eclipse/paho.mqtt.python/blob/v1.5.1/ChangeLog.txt#L4 )chown
workaround for inter-stage copyMQTT_HOST
, MQTT_PORT
, MQTT_USERNAME
& MQTT_PASSWORD
)--mqtt-password-file
pipenv
failing to create cachehomeassistant/switch/switchbot/MAC_ADDRESS/state
on success--mqtt-username
and --mqtt-password
SWITCHBOT_MQTT_VERSION
(fixes auto build on hub.docker.com)homeassistant/switch/switchbot/+/set
.
Handle ON
and OFF
messages.