Hi everyone,
After using Home Assistant for a few years and being very happy with it, I finally have something to share with the community!
It’s a Windows-based application (companion app) that communicates with- and adds functionality to Home Assistant, called: HASS.Agent
Help is wanted and very much needed for maintaining the code base, but also to help the community.
Please read for more information: lab02-research.org/2023-04-01-help-wanted
HASS.Agent is in need of your help!
Features
Short summary of the currently implemented core features:
-
Notifications: receive notifications, show them using Windows builtin toast popups, and optionally attach images. Supports actionable notifications: add buttons so you can easily interact with Home Assistant, without having to open anything.
- This requires the installation of the HASS.Agent integration.
-
Media Player: use HASS.Agent as a mediaplayer device: see and control what’s playing and send text-to-speech.
- This requires the installation of the HASS.Agent integration.
-
Quick Actions: use a keyboard shortcut to quickly pull up a command interface, through which you can control Home Assistant entities - or, assign a keyboard shortcut to individual Quick Actions for even faster triggering.
-
Commands (currently 24): control your PC (or other Windows based device) through Home Assistant using custom- or built-in commands.
-
Sensors (currently 37): send your PC’s sensors to Home Assistant to monitor every aspect of your device.
-
WebView: quickly show any website, anywhere - no browser required, for instance a HA dashboard.
-
Satellite Service: use the service to collect sensordata and execute commands, even when you’re not logged in.
-
All entities are dynamically acquired from your Home Assistant instance.
-
Commands and sensors are automatically added to your Home Assistant instance.
Getting Started
I’ve spent quite some time on streamlining the user experience, mostly by providing an onboarding process that’ll guide you through configuring the agent. So getting everything up & running shouldn’t be a problem.
Different parts of the agent use different methods of communicating with Home Assistant (API, MQTT …). They’ll be explained during onboarding, and if you don’t want to use something, you can just skip it.
The recommended way of installing is using the installer; it’ll make sure you have .NET 6 installed, prepares the service for you and launches HASS.Agent afterwards.
Notifications
If you want to receive notifications (one of the main reasons I created this), you need to install a small integration. This can easily be done through HACS, just search for HASS.Agent. You can of course also install manually by downloading and extracting the .zip package to the custom_components
folder. For help, check the integration section of the docs.
After installing, if you have HASS.Agent running with MQTT configured, your device should be automatically detected. Otherwise, manually add it using HASS.Agent’s local API.
Be sure to read the notifications section of the docs. It contains some usage examples as well.
Notification examples:
Quick Actions
Another reason I created this is Quick Actions. I wanted to quickly call services from my PC, so I could toggle lights, start my TV, pull up a video stream, etc. without having to open the app/website. Just a quick keyboard hotkey and an interface shows up with specific buttons.
This is the Quick Action window you’ll see when using the hotkey. It’ll automatically resize to the amount of buttons you’ve added:
You can easily configure a new Quick Action, HASS.Agent will fetch your entities for you:
While you can assign a global hotkey to show the Quick Actions form, as you can see in the screenshot above, you can also assign a hotkey to every individual Quick Action. This way, for instance, I can toggle a light by simple pressing CTRL-ALT-NumPad9
.
Info & Support
More info can be found on the GitHub readme or in the documentation. Feel free to post questions on this thread or on our Discord channel.
HASS.Agent has been working quite well so far, but if you encounter issues, please submit a ticket.
You’ll need to have .NET 6.0 installed. The installer will install it for you (no reboot required), otherwise you can download the redistributables here.
To see what’s planned and actively worked on, you can check the HASS.Agent YouTrack Dashboard. You can see all open ideas (and issues) on the right column, and the ones that are actively worked on for the next release on the left. If your idea isn’t on there yet, please create a ticket or discuss on Discord!
Thanks for reading, and hopefully it’ll be useful
Latest installer: click here
HASS.Agent is completely free, and will always stay that way without restrictions.
However, developing and maintaining this tool (and everything that surrounds it) takes up a lot of time. Like most developers, I run on caffeïne - so a cup of coffee is always very much appreciated!