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

 

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 tracker

had

 

 

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

 

Lights:

5ac0c88cd0161_Alfred-Lights.gif.b189ab13cb87d080fd9bfbf876b46027.gif

 

Automations:

5ac0c8bf9da44_Alfred-Automations.gif.0ff9fa3ebb5f47d4489ec3dfef202351.gif

 

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

 

Thanks!

//Andreas

Edited by Browall
New gifs
Link to comment

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 comment

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?

 

//Andreas

Link to comment
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 comment
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...