Jump to content

Browall

Member
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Browall

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

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

  3. Hi,

    I'm tying to get my first workflow up and running. However I get an exception when using alfred-workflow. I'm trying to save a keychain using wf.save_password('ha_password', args.apikey)

     

    The exception that i get:

    [2018-03-21 14:19:55][ERROR: action.script] .

    14:19:55 workflow.py:2057 DEBUG    ---------- Home Assistant ----------

    14:19:55 workflow.py:2074 ERROR    Unknown Keychain error : security: SecKeychainItemCreateFromContent (<default>): The user name or passphrase you entered is not correct.

    Traceback (most recent call last):

      File "/Users/andreas/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.A66C80D9-3423-441F-BEFA-CD9F0317B9A2/workflow/workflow.py", line 2067, in run

        func(self)

      File "home_assistant.py", line 50, in main

        wf.save_password('ha_password', args.apikey)

      File "/Users/andreas/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.A66C80D9-3423-441F-BEFA-CD9F0317B9A2/workflow/workflow.py", line 2407, in save_password

        '-w', password)

      File "/Users/andreas/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.A66C80D9-3423-441F-BEFA-CD9F0317B9A2/workflow/workflow.py", line 2817, in _call_security

        raise err

    KeychainError: Unknown Keychain error : security: SecKeychainItemCreateFromContent (<default>): The user name or passphrase you entered is not correct.

     

    I'm on High Sierra,  10.13.3. Alfred is freashly installled and alfred-workflow is fetched today.

    Someone any ideas?

     

    Thanks!

    //Andreas

×
×
  • Create New...