Code Monkey home page Code Monkey logo

home-assistant-macbook-touch-bar's Introduction

home-assistant-macbook-touch-bar

Displaying Home Assistant sensors in the Macbook Pro's touch bar using BTT.

See this Reddit thread.

Requirements

Install a button widget

  1. open BetterTouchTool
  2. select Touch Bar (โŒ˜1)
  3. click on (+) sign
  4. at "Select Trigger" โ†’ "Touch Bar Widgets" โ†’ "Shell Script / Task Widget"
  5. at "Launch Path" leave /bin/bash and at "Parameters" leave -c
  6. at "Script" add FULL_PYTHON_PATH PATH_TO_WIDGET OPTIONAL_ARGUMENTS, for the full Python path, use which python, e.g., /Users/basnijholt/miniconda3/bin/python /Users/basnijholt/Downloads/home-assistant-macbook-touch-bar/switch.py --entity_id light.living_room_lights --icon fa-lightbulb-o.png

If the widget has an action associated with it, continue

  1. at "Assigned Action(s)" click on "Click here & select action โ–บ" โ†’ "Controlling Other Applications" โ†’ "Execute Shell Script / Task"
  2. repeat step 5. and 6.
  3. pass the right argument (e.g., add --toggle) to the script

Examples

home-assistant-macbook-touch-bar's People

Contributors

basnijholt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.