Jump to content

Home assistant workflow

Recommended Posts

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..



_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:



To control lights:



To control your alarm:



To look at a Sensor:



To look at device tracker




You will find the workflow here : https://github.com/Skakiz/Alfred-Home-assistant-workflow








This is my first python coding, so no glitter code.




Edited by Browall
New gifs
Link to post

Thanks for sharing, @Browall! I'm happy for seeing a workflow for home automation. I personally think Alfred has a lot to do in this scope.


That said, Packal is an unmaintained project and not at all the best way to distribute your workflow. You better go with GitHub releases. Just share the workflow binary in the releases page for each released version (I also place it in the repo). A good practice is place your source code within a folder named src or source while the README, the LICENSE and the binary stay outside this folder. Additionally, use the autoupdate feature of alfred-workflow library to ensure the user has the latest version of the workflow.


Take a look on Alfred PDF Tools implementation:  https://github.com/xilopaint/alfred-pdf-tools.

Edited by xilopaint
Link to post

Hi @xilopaint,

How do I test if the autoupdate is working? I think I have done everything so it should be up and running. However I cant get Alfred to show the message that a new workflow is available. The current version should be 1.0.1. Do I have to commit a new binary as well in order to get Alfred to see that a new version is present?



Link to post
5 hours ago, Browall said:

However I cant get Alfred to show the message that a new workflow is available.


What version of macOS are you on?


GitHub recently changed their SSL settings, and the Python version on El Capitan (which is old and has very crappy SSL support) and earlier no longer works (with GitHub).

Link to post
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...