HASS.Agent

H

HASS.Agent

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

Join

How can I pass a payload message from node red to an MQTT action?

I'm trying to launch a Burnt Toast Notification with a text message from Node Red via msg.payload. https://github.com/Windos/BurntToast Now as a powershell command in hass agent i linked to a ps1 file: powershell -ExecutionPolicy Bypass -File "C:_automationScripts\mqtt-toast-notification.ps1" "{payload}" and via node red I send an mqtt out to the command with my custom payload. The notification pops up, but the message is still "{payload}"...

Changing the Name of the Device in HASS.agent makes Media Player Unavailable

The device name was originally the PC so I changed in to somthing more user friendly and it made the media player go unavailable.

Windows notifications -> HA

Is there a way to push windows notifications back to HA? For example, if I receive a notification from Slack in my windows notification centre, change my office light bulb colour.

Sensors not updating MQTT server at appropriate frequency

Hello, I've recently migrated to the fork due to lots of errors clogging up the HA log. The fork has resolved those issues, but I've got one new annoying problem. My sensors are not updating at the defined frequency; worse, they're seemingly updating at a random frequency. Looking at my MQTT server with MQTT Explorer, I see that the Agent is online, and updating that it is online every 30 seconds, reliably. The primary sensor in question is a "monitorpowerstate" that runs on the agent and should update every 3 seconds. If this was just a case where updates are only sent when status changes, that'd be fine, but it doesn't seem to be that way. Updates are still a seemingly random time period after actual status change. Looking at the topic in MQTT Explorer, I see update frequencies ranging from 30 minutes to 1 second Steps I have taken so far: I have restarted my PC running HASS Agent. I have restarted HomeAssistant. I have restarted my MQTT server. I have deleted and recreated the sensor....
No description

Unable to shutdown

I'm unsure if this is an issue with HASS.Agent or just home assistant but here goes. I have a button I had made "Shutdown PC" which calls the following in scripts.yaml. This previously worked but must have stopped working recently. I presume an update with either Home Assistant or HASS.Agent broke it, but I don't recall seeing anything in breaking changes relating to this. ```restart_amdpc: alias: Reboot AMDPC...

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

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

Projection Settings

Hi! Wondering how can I control DUPLICATE , EXTENDED OR ONLY SECOND SCREEN with HASS AGENT

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.

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
Next