Releases: fphammerle/switchbot-mqtt
Releases · fphammerle/switchbot-mqtt
device passwords
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
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 requireo=rX
perms on host - Dockerfile: add registry to base image specifier for
podman build
- Dockerfile: add
--force
flag torm
invocation to avoid interactive questions while runningpodman build
curtains
Added
- Control SwitchBot Curtain motors via
OPEN
,CLOSE
, andSTOP
on topichomeassistant/cover/switchbot-curtain/aa:bb:cc:dd:ee:ff/set
Changed
- Docker image:
- Upgrade
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 ) - Build stage: revert user after applying
chown
workaround for inter-stage copy
- Upgrade
- Log format: added name of logger between level and message
docker env
Added
- Docker image: support parametrization via environment variables
(MQTT_HOST
,MQTT_PORT
,MQTT_USERNAME
&MQTT_PASSWORD
)
python3.5 compatibility
mqtt password file
Added
- Added command line parameter
--mqtt-password-file
Fixed
- Docker build: fix
pipenv
failing to create cache
publish state
Added
- Publish new state to
homeassistant/switch/switchbot/MAC_ADDRESS/state
on success
authentication
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
v0.1.0 Subscribe to homeassistant/switch/switchbot/+/set. Handle ON and OFF …