Do you have the service installed on the PC? That error seems to me like it’s the configuration part of the app trying to authenticate with the service part of the app.
As far as authentication between HA and Hass.Agent, it’s either via MQTT or API, and in ether case I think it would give you an error for the main. Part of the app as well as the satellite part as they probably share the same authentication records.
My goal is to send notifications to my laptop, for example if someone is at the door, but can’t seem to get that working. Am I mistaken I need to do this by Local API? Because commands and stuff work great, but there is no notify. registered.
Got stuff working. Apparently there was still an old config in my HA installation. After removing it from the config.entries file it started to rediscovering my device again and now it works. Without LocalAPI so might as well shut it down.
Hello, I’m having some issues with getting notifications working. When clicking the test button in Hass.Agent I correctly get a Windows notification. However, from what I can figure out, there should also be a notify.hass_mypc service in the Home Assistant developer tools, but I don’t have that.
I’m not sure if there’s something I should do first or if anything is wrong?
I do use MQTT to publish opening apps on Windows and to change audio, light/dark mode and get sensor data, so everything is setup correctly as far as I know.
Did you install Hass.agent integration in HA via HACS or manually? Also, there seems to be a break after updating to 2024.5 HA core where the notifcation stopped working. A hotfix provided by user atax112 where you manually edit the init.py should fix the issue until the integration is updated.
Thank you very much, I was indeed being dumb and didn’t install the Hass.agent intergration (thought I could send the notifaction using MQTT), and then changed the init.py file and it all works now
I am using hass.agent to capture the powerstate from my pc… and it seems to be working. The idea is to know when screens are on and when it enters standby mode (some seconds after locking the screen).
As you may see, it works (PowerOn state as blue, PowerOff state as magenta).
The goal: i have a TV connected to this pc and the idea is to automate switching it on and off. When the PC wakes up - turn TV on. When the PC goes to sleep, turn tv off.
I already have TV control working inside HA, but I can’t see the entity state inside an automation (it only shows “unavailable” or “unknown” as states).
In my experience, certain integrations do not populate their various states into the automation GUI, however if you match the state shown in developer panel (case-sensitive) it will work. I suggest giving it a try.
There’s an issue with the newest version of Home Assistant and HASS.Agent. Sadly the current HACS integration is no longer being maintained.
There is a new repository with a more up-to-date HACS integration which solves the media player issue.
You’d have to uninstall the current version of HASS.Agent from HACS then manually install this one.
Alternatively, you could manually fix the issue by adding four lines of code to the current __init__.py file under custom_components/hass_agent this would allow you to continue with the current outdated HACS integration without having to reinstall it. You can find the instructions in this github issue
I have a laptop device at home. During the day it is connected to a dockingstation with a wired connection. When the workday is finished sometimes I undock the device, then it siwtches to wifi.
This is of course a different IP address. HASS.Agent works fine on the wired connection, but errors out when the laptop is connected to wifi. Which makes perfect sense since it is on a different IP.
Is there anything I can do to solve this issue, for example to push the new IP to HA or something?
Yes it is. But it are different mac addresses and thus they get different IP addresses from the DHCP server. This is default behavior to my understanding.
How do I create a quick action to either (1) press a button or (2) run an automation in HA?
I have an automation “Office - Keyboard Office Off” that I want to run from HASS. The automation’s trigger is currently set from a helper button I created. I can’t find the helper button as a “domain” option in the quick actions page nor did any of the ‘Desired Actions’ work for me when I created a quick action from the automation domain. Help? Thanks!
What I did was make a script that runs the automation. It’s an extra step, but after discussing something similar on the Discord, that’s where I landed. It’s set up, and works.