![]() |
пре 4 година | |
---|---|---|
.github | пре 4 година | |
switchbot_mqtt | пре 4 година | |
.dockerignore | пре 4 година | |
.gitignore | пре 4 година | |
.pylintrc | пре 4 година | |
COPYING | пре 4 година | |
Dockerfile | пре 4 година | |
Pipfile | пре 4 година | |
Pipfile.lock | пре 4 година | |
README.md | пре 4 година | |
mypy.ini | пре 4 година | |
setup.py | пре 4 година |
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