Browall Posted March 31, 2018 Share Posted March 31, 2018 (edited) 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: Automations: This is my first python coding, so no glitter code. Thanks! //Andreas Edited April 3, 2018 by Browall New gifs xilopaint 1 Link to comment
Browall Posted April 1, 2018 Author Share Posted April 1, 2018 I have added the project to packal. See http://www.packal.org/workflow/home-assistans Link to comment
xilopaint Posted April 1, 2018 Share Posted April 1, 2018 (edited) 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 April 2, 2018 by xilopaint Link to comment
Browall Posted April 2, 2018 Author Share Posted April 2, 2018 Thanks, for all the info. I did not know that Packal is unmaintained. I will try to get the GitHub release to work. Thanks for sharing info! Link to comment
Browall Posted April 3, 2018 Author Share Posted April 3, 2018 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
xilopaint Posted April 3, 2018 Share Posted April 3, 2018 Read the docs: Quote Currently, only updates from GitHub releases are supported. There isn't releases in your repo. Furthermore you can ask @deanishe, the creator of Alfred-Workflow, to quickly review your code and tell you if everything is set for updates. Link to comment
deanishe Posted April 3, 2018 Share Posted April 3, 2018 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
Stooovie Posted January 23, 2020 Share Posted January 23, 2020 This is super cool and handy but it doesn't work with newer HA releases as the API password framework was deprecated. Any chance of updating? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now