HASS.Agent

H

HASS.Agent

Join the community to ask questions about HASS.Agent and get answers from other members.

Join

WebView Closes When Pressing Microphone Button

Hey, when I try to open the voice assistant via the WebView in HASS.Agent, everything works fine at first, and the interface loads correctly. However, as soon as I press the microphone button to start voice input, the WebView closes automatically without any error message. Has anyone encountered this issue before? Are there any known fixes or workarounds? Any help would be greatly appreciated!...

Hass.agent with rabbitmq as a broker

Hello everyone i recently tried to use hass agent but i dont use the nromal mqtt addon i use an mqtt broker called rabbitmq so atm hass agent is costantly going from running to connecting over and over can someone help me with this?...
Solution:
Yep, so you'll need the newer version from here.

2.1.1 - Hibernate Command isn't working

Just getting around to hibernating my PC after the update and I think something is off on my install, but I can't figure out what. I tried reinstalling the service, but no dice. The command goes to HA as I see the script triggered over there, but it seems the Hibernate command is stalling on the PC end. Here are my logs - https://pastebin.com/ju7PCjFN I get a little toast that says it failed....
Solution:
You'll have to forgive me. I could've figured this out. It seems my original entities had pc_satellite_pc_satellite_command_name. When I reinstalled HassAgent recently the satellite config didn't come over and I recreated the commands with pc_satellite_command_name. It seems this didn't show up until I checked MQTT in HA and found the new second set of entities. Once I updated my script it's all fixed. 😂🤦

Log shows some exceptions

I am getting these errors at startup. Does not seem to affect my sensors though, but would be nice to track them down and have a clean startup. Maybe some old non supported stuff in the config?...

Notifications not showing

This thread was auto created from this message by @Cap. Hello. I had hass.agent on my desktop for notifications of certain sensors in HA when I am at the desk. I upgraded to 2.1.1 but didn't test the notifications to see if they still worked. I found out that they had stopped working and the desktop was not showing available in the hass agent integration in HA. When I went to test the notification in hass.agent it did not appear. I followed the troubleshooting steps of the old hass agent under notification-debugging. No changes. I uninstalled then reinstalled hass agent on the desktop and notifications from hass agent started working again but desktop never showed up in HA under the integration. Then I selected media player functionality and restarted hass agent then the test notification stopped working again. The whole time I had hass agent on an HTPC and it didn't have problems and I can still get test notifications from hass agent 2.1.1 on the HTPC. The desktop has Windows 11 and the HTPC has Windows 10. What other steps can I take to get test notifications to start working again in hass agent on the desktop and to get the desktop to be recognized in hass integration in HA?...

hass-agent - an error occurred whilst saving sensor, see logs

hey folks, great to be here.. i used to post like this years ago in IRC, 🙂 yeah, aging myself.. so i've got the hass-agent setup (this one) but when i go to add cpuload i get the following message (see snapshot) anyone know why? thanks!...
No description

Elevated PowerShell command

This thread was auto created from this message by @horned1. The command I'm using now requires an administrator elevated powershell. Is there a way to do this? I noticed that powershell commands cannot be elevated from the Hass.AGENT commands interface...

Sensors not refreshing

I've added some powershell sensors to attempt to pull my wireless prefererables battery info into HA, the scripts work after reboot, and after opening the local sensors dialog and storing and activating them. but now none of the sensors seem to be refreshing as they were before
No description

MQTT Constant Disconnects and Reconnects After Reboot

On each startup I find HASS Agent isn't communicating over MQTT. Looking at the status it flips rapidly between connected and reconnected. Looking at the Mosquito MQTT Broker logs, the previously used ID is showing as still connected, as though it didn't disconnect cleanly. The only thing I can spot in the HASS Agent logs is the connection confirmations several times per second....
Solution:
I think @Amadeo was on to something. I had a prior issue which I used task scheduler to start HASS agent as admin. I never deleted that after resolving my other issue...
No description

URI Notification action not opening URI

Been debugging this for about an hour, tried reinstall and completely cleared all hass.agent including registry and scheduling before installing latest notification changes in 2.1.0-beta4 but still no luck. HA yaml service: ```yaml service: notify.pc...

Keyerror "device" HA integration

This thread was auto created from this message by @flashback. hi, last windows version (2.1.0), got this error in ha: 2025-01-30 17:02:06.552 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry PCNERO for hass_agent Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context result = await component.async_setup_entry(hass, self)...

Only *one* entity after install? 🤔

hmm.. I've just got this installed and communicating but I am not seeing much of any info from my windows station. All I see is a single media player. When I join things like a light bulb, I get all its entities like brightness, on/off, color and even things like wifi signal. With this setup I only see this one entity..? I must be missing something 🤔
No description

.Net desktop errors

Morning all I woke up to errors on hass.agent.exe starting up on my machine. Been running fine for years! Is this a me issue? Should i download and install teh suggested, or is it because i am running an out of date version or something?...
Solution:
let me now try and install 12
No description

Figuring the correct way to publish a payload for powershell

So I'm having trouble getting custom payloads working with powershell. I am running 2.1.1-beta3 and the latest 2.1.1 integration. I've had a decent play with possible variation on how to do this, and scoured the old and new docs, both github repos and general googling. At this point I figure I'm scratching my head. I have made a PowershellCommand via the ui and set the command to C:\quicksetdns\QuickSetDNS.exe /SetDNS "1.1.1.1,1.0.0.1" "{F41A4233-02DA-42D6-A97B-A2D12F9FE0CD}" which works a treat when I hit the entity button in HA, but what I'm looking to do is be able to set "1.1.1.1,1.0.0.1" via payload to allow me to configure the dns I'm using via home assistant...
Solution:
While I couldn't seem to get anything working using that example, I have found a solution. I made the following custom executor using C:\Program Files\PowerShell\7\pwsh.exe and use one of your example payloads from above: /SetDNS \"1.1.1.1,1.0.0.1\" \"{F41A4233-02DA-42D6-A97B-A2D12F9FE0CD}\"

Executing Powershell commands - execution context?

Hey peops, I'm wondering... I can set up a PowerShell command linked with a button in HA, so far, so well-known. I'm wondering however what the actual context of the command is. Environment seems to be that of SYSTEM (I see no user env vars in the process). What about the working directory? Where is the command executed? What privileges does it have? And especially, can I change the context? I would like to tell the command in which working directory it shall run etc. Would this be worth a feature request (if not already possible)? Cheers...

HASS Agent Notifications Stopped Working

I had notifications working, and now even the local test notification is not showing up. The logs just state it failed to create the notification, but is no more verbose than that. I am using a scheduled task to run this as admin (same user who has local admin privileges), seems to work fine when run normally. The admin account and my main account are the same. I am just referring to right clicking and running as admin....
Solution:
That doesn't work, hass.agent is user, satellite is admin

command does work with mqtt topic, works without

sorry to bring up another one of these 😅 i have a command i want to run
nircmd setdisplay monitor:0 1920 1080 32
nircmd setdisplay monitor:0 1920 1080 32
it runs fine like that, but i want the last 3 arguments to change so i tried to set it up as an mqtt action topic...

Renamed the HA host PC - HA still discovers the old PC name

Home Assistant is running as a VM on a Windows PC. I had initially named my Window host PC "HomeAssistant-PC" and had installed HASS.Agent. I renamed the Windows PC "HASS-PC" (shorter name). I uninstalled HASS.Agent from the Windows PC and cleared all directories (I think) and reinstalled. But Home Assistant continues to show "Discovered / HomeAssistant-PC / HASS.Agent / ADD IGNORE" and after manually adding "HASS-PC" to HASS.Agent it shows the "HASS-PC" as unavailable. Also, I see this (see below) in the logs for "HomeAssistant-PC" which may be a clue (?). I've deleted all entries in MQTT related to "HomeAssistant-PC" but entries come back. So, I'm guessing there is something I have not properly cleaned from HASS-PC. Logger: homeassistant.config_entries Source: config_entries.py:855...
Solution:
Never mind. I just restarted Home Assistant (again - not for the 1st or 2nd time) and now it sees "HASS-PC" not "HomeAssistant-PC". So, I think the problem is resolved. Sorry for the premature post.

Sometimes mqtt commands just don't work

I think it's audio related. The jist of it is I have headphones and speakers that I try to switch between using a zigbee button, but sometimes until I restart hassagent this won't work at all I think something is crashing and not recovering properly. Here's the -only- logs during this time ...

USB Human Presence sensor does not show at the internaldevice sensor list

I use a Lenovo Smartthink HUB as a Home Assistant Dashboard and has a Internal USB Human Presence sensor but does not show up on the sensor list is there a way i can use that in HASS Agent?
Next