![]() |
4 years ago | |
---|---|---|
.github | 4 years ago | |
switchbot_mqtt | 4 years ago | |
.dockerignore | 4 years ago | |
.gitignore | 4 years ago | |
.pylintrc | 4 years ago | |
COPYING | 4 years ago | |
Dockerfile | 4 years ago | |
Pipfile | 4 years ago | |
Pipfile.lock | 4 years ago | |
README.md | 4 years ago | |
mypy.ini | 4 years ago | |
setup.py | 4 years ago |
Use sudo hcitool lescan
or select device settings > 3 dots on top right in
SwitchBot app
to determine the mac address.
# https://www.home-assistant.io/docs/mqtt/broker/#configuration-variables
mqtt:
broker: BROKER_HOSTNAME_OR_IP_ADDRESS
# credentials, additional options...
# https://www.home-assistant.io/integrations/switch.mqtt/#configuration-variables
switch:
- platform: mqtt
name: some_name
command_topic: homeassistant/switch/switchbot/aa:bb:cc:dd:ee:ff/set
# http://materialdesignicons.com/
icon: mdi:light-switch
$ docker build -t switchbot-mqtt .
$ docker run --name spelunca_switchbot \
--userns host --network host \
switchbot-mqtt:latest \
switchbot-mqtt --help