Releases: fphammerle/switchbot-mqtt
Releases · fphammerle/switchbot-mqtt
fix birth & last will topic
Fixed
- Publish birth and last will message on expected/documented topic
homeassistant/switchbot-mqtt/status
instead of topic
homeassistant/switchbot_mqtt/status
.
birth & last will
fix ipv6
topic prefix
Added
- command-line option
--mqtt-topic-prefix
TLS
Added
- command-line option
--mqtt-enable-tls
- command-line option
--mqtt-disable-tls
(enabled by default)
Deprecated
- invocation with neither
--mqtt-enable-tls
nor--mqtt-disable-tls
set curtain position
Added
- MQTT messages on topic
homeassistant/cover/switchbot-curtain/MAC_ADDRESS/position/set-percent
trigger command to set curtain motors' position (payload: decimal integer in range[0, 100]
) - support
PySwitchbot
v0.11.0
andv0.12.0
Removed
- compatibility with
python3.6
- no longer report button automator's battery percentage on deprecated topic
homeassistant/cover/switchbot/+/battery-percentage
(usehomeassistant/switch/switchbot/+/battery-percentage
instead, seev2.1.0
)
device info request
Added
- MQTT messages on topic
homeassistant/switch/switchbot/MAC_ADDRESS/request-device-info
andhomeassistant/cover/switchbot-curtain/MAC_ADDRESS/request-device-info
trigger
update and reporting of device information (battery level, and curtains' position).
Requires--fetch-device-info
.
fix battery topic
Added
- battery level of button automators will additionally be reported on topic
homeassistant/switch/switchbot/MAC_ADDRESS/battery-percentage
.
old (misleading) topic kept for downward compatibility. --fetch-device-info
can alternatively be enabled by assigning a non-empty value
to the environment variableFETCH_DEVICE_INFO
report battery level
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 toDEBUG
Changed
- changed default log level from
DEBUG
toINFO
- shortened log format (revert with
--debug
)
Removed
- compatibility with
python3.5
report position
Added
- command-line option
--fetch-device-info
enables reporting of curtain motors'
position on topichomeassistant/cover/switchbot-curtain/MAC_ADDRESS/position
after sending stop command.