Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/31/2018 in all areas

  1. This workflow lets you control your Home Assistant from Alfred. You will be able to control you lights, get sensor information, trigger automations and look for your devices in device tracker. And more to come.. Setup _haurl - Set the URL to the home assistant. _hapassword - set the API password for Home Assistant Commands to interact with home assistant To triggar an automation: haa To control lights: hal To control your alarm: haal To look at a Sensor: has To look at device
    1 point
  2. @deanishe This is very useful as I'm always changing between network locations. I noticed that you're using the networksetup command to change locations. I've found that if you use the "scselect <location name>" command instead of "networksetup -switchtolocation <location name>" to change locations, it doesn't throw up that annoying password prompt. Perhaps consider modifying your python script to use the "scselect" command to change locations. Thanks!
    1 point
  3. That works. But you could do the same more simply by putting the command keywords in match and letting Alfred do the filtering: import json import sys commands = [ { 'title': 'On', 'arg': 'on', 'match': 'on up activate', 'autocomplete': 'Bluetooth On', }, { 'title': 'Off', 'arg': 'off', 'match': 'off down deactivate', 'autocomplete': 'Bluetooth Off', }, { 'title': 'Restart', 'arg': 'restart', 'match': 'toggle change switch', 'autocomplete': 'Bluetooth Toggle', }, {
    1 point
×
×
  • Create New...