Sem descrição

Fabian Peter Hammerle 9417ee6df4 docker: run as unprivileged user; uninstall pipenv + dependencies há 4 anos atrás
.github cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
switchbot_mqtt 701ec81f1f validate mac address há 4 anos atrás
.dockerignore cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
.gitignore cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
.pylintrc cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
COPYING cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
Dockerfile 9417ee6df4 docker: run as unprivileged user; uninstall pipenv + dependencies há 4 anos atrás
Pipfile cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
Pipfile.lock cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
README.md 094cd7a394 readme: added home assistant config snippet há 4 anos atrás
mypy.ini cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás
setup.py cb2596d32e standard python project tech stack (pipenv, pytest, pylint etc.); mqtt connect; GPLv3+ há 4 anos atrás

README.md

Use sudo hcitool lescan or select device settings > 3 dots on top right in SwitchBot app to determine the mac address.

Home Assistant 🏡

# 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

$ docker build -t switchbot-mqtt .
$ docker run --name spelunca_switchbot \
    --userns host --network host \
    switchbot-mqtt:latest \
    switchbot-mqtt --help

Alternatives