Giter Club home page Giter Club logo

homeassistanttrayapp's Introduction

HomeAssistantTrayApp

An application that sits in the Windows system tray to allow the user to trigger HomeAssistant automations. Requirements:

  • HomeAssistant
  • CredentialManager module
  • Server address and API token stored in Windows Credential Manager

Instructions:

  1. Download HomeAssistantTrayApp.ps1 to your computer from the link above.

  2. Install the CredentialManager module (Install-Module CredentialManager should do the trick)

  3. Open a Powershell prompt and run the command

     Set-ExecutionPolicy Unrestricted
    
  4. Store the credentials of the email address you want to send the email from in Windows Credential Manager using the CredentialManager module:

Install-Module CredentialManager
New-StoredCredential -Target HomeAssistant -UserName [server address] -Password [API token] -Type Generic -Persist LocalMachine

note: the server address should be in the full URL format (i.e. "https://my.homeassisantserver.com", "https://jibberish.ui.nabu.casa", "https://192.168.1.255:8123", etc.) without a trailing slash

another note: "a long-lived access token can be created using the UI tool located at the bottom of the user's Home Assistant profile page"

  1. Run the script! You can run from a Powershell prompt, or by right-clicking and selecting Run.

Default behavior:

.\HomeAssistantTrayApp.ps1

There are no parameters for this script. The server address and token should be stored in Credential Manager. All automations are retrieved when the script is initially run and stored until the application is closed from the context menu. They are displayed in alphabetical order, and you can refresh the list by relaunching the script (right-click the icon and select "Relaunch Tray App").

Please let me know if you have any questions, comments, or suggestions!

homeassistanttrayapp's People

Contributors

sup3rmark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.