HASS.Agent

H

HASS.Agent

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

Join

No audio when playing media player

Hi all, i have all of the normal install setup and everything is working fine - commands, notifications etc etc.. But i cant get any audio to play. I can see media player entity in HA, and it says its playing, but no sound on the target pc (windows 11). I would appreciate any tips on how to trouble shoot this....

GPU load/temp not showing

Hi, ive a weird issue : new pc and fresh Windows install, everything was working great. For some reasons related to EXPO ive réinstalled a fresh Windows. So now, GPU Tweak see data of the GPU, ADIA64 also, but not Hass.Agent (every of the mentionned programs are closed when i try). I’m not sure where to look for .. ...

New win 11 install crashes constantly

It keeps closing itself after less then a minute even during the onboarding. As well as with everything turned off. No sensors added fresh install.

device_registryasync_update_device

I couldn't find any reports of this in the channel - sorry if it has been reported before. HA keeps reporting the following in logs: Exception in updated when handling msg on 'hass.agent/devices/xxx': '{"serial_number":"xxx","device":{"identifiers":"hass.agent-xxx","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.19045.0","name":"xxx","sw_version":"2.0.1"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 144, in updated update_device_info(hass, entry, payload) File "/config/custom_components/hass_agent/init.py", line 29, in update_device_info device_registry.async_get_or_create( File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 834, in async_get_or_create device = self.async_update_device( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1066, in async_update_device self.hass.verify_event_loop_thread("device_registry.async_update_device") File "/usr/src/homeassistant/homeassistant/core.py", line 462, in verify_event_loop_thread frame.report_non_thread_safe_operation(what) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 225, in report_non_thread_safe_operation report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 159, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 197, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls device_registry.async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registryasync_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create...
Solution:
It was this version that was producing the errors. I switched to the forked version as suggested here: https://github.com/LAB02-Research/HASS.Agent/issues/411...

Can't connect through local API (not MQTT)

Client is installed and configured. I'm still getting "can't connect" even if everything seems fine (i did a netstat -a and the api seems exposed)....

Extremely high CPU/RAM (~100% CPU, 16GB+ RAM) usage from Device Association Service?

heya, i just found this and installed it. i'm very sorry if this is already in the wiki or somewhere, i couldn't find it. whenever i have HASS.Agent running, the "Service Host: Device Association Service" very quickly goes up in CPU/RAM usage until it's using close to 100% CPU and like 16GB of RAM for reference, i have the following specs (can ask for more detail if needed):...
No description

Surface Go monitor sleep

I have a Surface Go 2 running Win 11 Pro that I’m trying to get Hass agent/home assistant to control the screen of. I want to be able to turn the screen off but not put the Surface to sleep so that you can tap the screen and it wakes up again. I tried using the monitorsleep control but it requires you to press the power button to turn it on again and the monitorwake does not wake it up. Is what I’m looking to do possible?

HassAgent no longer starts up after restart

Have made no changes in the past months to the config, just restarted as my commands weren't working anymore and now this happens
No description

Setting Up From A Remote Computer

Hi, I want to set up the client from a remote PC, so, there is no local api, I used Nabu Casa server instead. Is there any way to help the system to discover the device? Because I have tested the online link from the client, and it can discover all the devices in my home assistant system. Many thanks.

Cannot communicate with PC over MQTT

I've been trying to figure this out, but i cannot talk to my computer over MQTT by sending notifications or anything.
No description

.NET Desktop Runtime Error

Hi, I just downloaded HASS Agent and having an issue getting it to run. After I install it I get an .net desktop runtime error that says I need version 6.0.25. However I already do have it. If I click Yes to if I want to download it now. Nothing happens and it just closes.

Notification doesnt work

I got the 2.1.0-beta1 installed im able to send commands to my computer the test notification in the Hass client works but when trying to send notification with HA it doesnt work ...
No description

Can't see notify service or entity

Hello, after 1 week of trying, i came here to see if you can help me. I first try the original version of hass.agent + hass agent windows, but of course it didn't work. So i delete all of it, even the entity create by the original version. ...

Shutting your computer down through HA.

I have added the Shutdown command to HASS Agent and my Home Assistant sees the button of the shutdown, but for some reason I am unable to shut my computer down through Google Home. I have WOL enabled and I am able to start my computer through Google Home and HA. Its a WOL Switch with the name of my Desktop.

PC doesn't get discovered in HA but MQTT picks it up + no notify.your-pc service

Posting these as one support thread in case they're related. I'm not getting a HASS.Agent integration pop up with the device discovered, but it still appears under my list of devices for MQTT. I've added the github repo for media/notfications. I'm picking up the sensors I want and I can send the test notification from the App (except GPU Temps which says Unavailable) but there's no notify service....

No services using HASS.Agent auto-discovery

I did manage to install HASS.Agent in my PC using MQTT. Also installed all HASS.Agents addons via HACS and it does manage to auto-discover my PC. The problem is that the device found has no entity/service. Any hint?...
No description

Notification Documentation Link

The Notification Documentation Link in the Configuration UI goes to https://www.hass-agent.io/latest/setup/notifications/ which is giving a 404 error. This is just FYI.... should this have been a github issue? 😄...

HASSAgent.sys Malware Detected - False Positive, I know.

My work laptop picks up HASSAgent.sys is flagged as malware due to file reputation according to our company malware software. I saw the GitHub where this likely outdated information, but I'm limited in what I can do on my end to resolve this. What functionality is tied to HASSAgent.sys? It seems MQTT still works for the one sensor I'm testing with -- My use case on this computer is Microphone Detection; which appears to be working with the .sys file deleted/quarantined.
Second question, is there a way that I can get the application to stop creating the .sys file on ever restart? Depending on the answers to the first question, a limited functionality may be okay for my work PC, but I'd like to stop generating the quarantine reports before someone from our TOC starts asking questions....

Cannot get HASS/integration working

Long time user... first time complainer. 😛 Brand new computer. Installed the agent on windows using https://github.com/hass-agent/HASS.Agent/releases/latest/download/HASS.Agent.Installer.exe Added the custom repo to HACS (this one right?)...
No description

Clicking desktop notification custom action?

Is there a way when I get a push notification to my desktop (windows 11) and click on it, that it does something specific on the computer (like opens a browser to a certain page)?