HASS.Agent

H

HASS.Agent

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

Join
rare-sapphire
rare-sapphire3/9/2025

Media play pause stops working via HA when resuming from suspend.

Here's the output from the broken PC, it seems to work on another PC so I really don't know what I'm doing wrong. {"availability_topic":"homeassistant/sensor/THEATER-PC2/availability","command_topic":"homeassistant/button/THEATER-PC2/mediaplaypause/set","action_topic":"homeassistant/button/THEATER-PC2/mediaplaypause/action","unique_id":"c9fcb6d4-aad8-4454-a990-4861290e64e2","object_id":"THEATER-PC2_mediaplaypause","device":{"identifiers":"hass.agent-THEATER-PC2","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.26100.0","name":"THEATER-PC2","sw_version":"2.1.1"},"entityname":"mediaplaypause","name":"mediaplaypause","state_topic":"homeassistant/button/THEATER-PC2/mediaplaypause/state"} Here's the working one ...
secure-lavender
secure-lavender3/2/2025

Failed to Connect

I recently found out my PC notifications were not working. I removed the integration but when I try to re-add I get faile to connect every time. I have the Hass.Agent running on PC and verified the firwall rule exists. I've also verified that the HA instance and the PC can see each other HA Version 2.1.1 PC Version 2.1.1...
No description
adverse-sapphire
adverse-sapphire3/1/2025

Projection Settings

Hi! Wondering how can I control DUPLICATE , EXTENDED OR ONLY SECOND SCREEN with HASS AGENT
harsh-harlequin
harsh-harlequin2/28/2025

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!...
Solution:
got it, this checkbox was required.
absent-sapphire
absent-sapphire2/22/2025

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?...
other-emerald
other-emerald2/8/2025

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...
wise-white
wise-white2/3/2025

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
extended-salmon
extended-salmon2/3/2025

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)...
eastern-cyan
eastern-cyan1/30/2025

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
like-gold
like-gold1/30/2025

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}\"
foreign-sapphire
foreign-sapphire1/29/2025

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...
extended-salmon
extended-salmon1/29/2025

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