Skip to content

Releases: fphammerle/switchbot-mqtt

fix birth & last will topic

31 Aug 14:49
v3.3.1
641f4c1
Compare
Choose a tag to compare

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

30 Aug 19:46
v3.3.0
0bf1044
Compare
Choose a tag to compare

Added

  • Birth ("online") and last will ("offline") message on topic homeassistant/switchbot-mqtt/status
    (@phbasler, #105)

Correction: Inadvertently publishing on homeassistant/switchbot_mqtt/status instead of documented homeassistant/switchbot-mqtt/status. Topic will be fixed in next release.

fix ipv6

09 Jul 08:39
v3.2.1
b5b88a1
Compare
Choose a tag to compare

Fixed

  • ValueError: too many values to unpack when connecting to MQTT broker via IPv6
    (#42)

topic prefix

18 Apr 13:10
v3.2.0
d4bda88
Compare
Choose a tag to compare

Added

  • command-line option --mqtt-topic-prefix

TLS

03 Apr 11:13
v3.1.0
788f312
Compare
Choose a tag to compare
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

05 Feb 20:18
v3.0.0
d9916ca
Compare
Choose a tag to compare

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 and v0.12.0

Removed

  • compatibility with python3.6
  • no longer report button automator's battery percentage on deprecated topic homeassistant/cover/switchbot/+/battery-percentage
    (use homeassistant/switch/switchbot/+/battery-percentage instead, see v2.1.0)

device info request

23 Oct 16:26
v2.2.0
9da20c1
Compare
Choose a tag to compare

Added

  • MQTT messages on topic homeassistant/switch/switchbot/MAC_ADDRESS/request-device-info
    and homeassistant/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

19 Oct 18:23
v2.1.0
efc5352
Compare
Choose a tag to compare

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 variable FETCH_DEVICE_INFO

report battery level

16 Oct 13:00
v2.0.0
e5cd414
Compare
Choose a tag to compare

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

report position

06 Oct 06:15
v1.1.0
c7e77dc
Compare
Choose a tag to compare

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.