Home Assistant Hotkeys

This is a menu bar application for Mac OS that allows you to toggle on/off lights via Home Assistant. It uses the Home Assistant Rest API

Installation

  1. Run:
bundle install
pod install
  1. When running pod install it will ask for a host key and a secret key. Set the host key to your the URL where your home assistant is running, for example https://example.com. Set the secret key to your Long-Lived Access Token as described in the Rest API.

  2. Open home-assistant-hotkeys.xcworkspace and compile.

Usage

Lights can be toggled with F1, F2, F3, ...

Todo

  • Add menu bar icon
  • Show lights that are on and off in drop-down menu
  • Add Preferences pane where secret key and host can be added
  • Allow custom shorcuts