Displaying Home Assistant sensors in the Macbook Pro's touch bar using BTT 🤖💻
MIT License
Displaying Home Assistant sensors in the Macbook Pro's touch bar using BTT.
See this Reddit thread and this topic on the Home-Assistant forum.
widgets/secret.py
and fill in a token and URL/bin/bash
and at "Parameters" leave -c
FULL_PYTHON_PATH PATH_TO_WIDGET OPTIONAL_ARGUMENTS
, for the full Python path, use which python
, e.g., /usr/local/bin/python3 ~/Downloads/home-assistant-macbook-touch-bar/widgets/switch.py --entity_id light.living_room_lights --icon fa-lightbulb-o.png
If the widget has an action associated with it, continue
--toggle
) to the scriptSee the instructions in
and use the BTT interface to choose an icon.
To add a light buttons like use the widgets/switch.py
script like (trigger script)
~/miniconda3/bin/python ~/Downloads/home-assistant-macbook-touch-bar/widgets/switch.py --entity_id light.living_room_lights --text "🛋️💡"
and (action script)
~/miniconda3/bin/python ~/Downloads/home-assistant-macbook-touch-bar/widgets/switch.py --entity_id light.bedroom_lights --text "🛌💡" --toggle