

- #Homebridge scriptable install#
- #Homebridge scriptable full#
- #Homebridge scriptable download#
- #Homebridge scriptable free#
Returns raw list of all available accessories on the Bridge Debug: Set to True if you want to create debug and exception logfile. HomeScript( hostname: str, port: str, auth: str, debug: Boolean, argv: list )Ĭonstructor to initialize HomeBridge Connection. Any get/set/print operation requires accessories to be selected first. # Select an accessory or group of accessories. Debug and sys.argv are optional hs = homescript. Import homescript # Initialize with hostname, port and auth code.
#Homebridge scriptable download#
#Homebridge scriptable install#
Install the HomeScript API pip install homescript or pip3 install homescript.Pm2 stop homebridge pm2 delete homebridge pm2 start homebridge -I Important: HomeBridge must be run in insecure mode for this script to work! Running HomeBridge in Insecure Mode
#Homebridge scriptable free#
Looking for maintainers: If you are interested in maintaining this project, feel free to reach out. You can set multiple accessories (of the same type) in a single command: The script will automatically search for matching substrings and set the accessory value Group Actions
#Homebridge scriptable full#
The script doesn't require full names of the accessories.įor example, if your light is called "MainLight", you can run: Hs.py -s desk -b +10 | Increment/Decrement values Easy Match Hs.py -s lifx -hue 140 | RGB Lights Support (brightness, hue, saturation, temperature) Note: as of HomeScript 4.1 the minimum requirement is Python3+ and HomeBridge 1.x.x+ Examples You can set up a cronjob to enable automation, scripting and mimic other HomeKit functionalities Used to toggle Homebridge accessories On or Off via python script, no Home app required. My exploration of the Stream Deck Mini has taken me to a bunch of very interesting places in Keyboard Maestro and elsewhere-more on those at a later time-but this simple URL-based integration has actually had the biggest impact.Python script for command line control of HomeBridge (HomeKit) (This process will even work if HomeControl Menu isn’t running, because macOS will launch any app that’s registered to receive a particular URL scheme if it’s not open.) Automation URLs from Home Control Menu are prefaced by the homecontrol protocol handler, and when the Stream Deck app hands that URL off to macOS, it does the right thing-namely pass the URL on to HomeControl Menu, which toggles my lights. The Stream Deck’s default set of actions includes one called Website, which is designed to open a page in your default browser. With that knowlege in hand, setting up Stream Deck buttons to control my lights became extremely easy. But that’s not all HomeControl Menu does-it also supports automation via custom URLs. In January I wrote about HomeControl Menu, a utility that puts control of HomeKit devices in your Mac’s menu bar. (Even though it’s a Catalyst app, it could be made scriptable if Apple wanted to-witness Dice By PCalc, which recently added scripting support.)įortunately, I figured out a solution. Here’s the problem: The Home app on the Mac isn’t scriptable. And I immediately wondered if I could assign buttons to turn the lights in my office on and off. Controlling HomeKit via Stream Deck is easy with Home Control URLs.Īfter much hesitation and research, I recently bought a Stream Deck Mini.
