HASS.Agent

H

HASS.Agent

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

Join

Frigate notification to HASS.Agent

as the title says, I want an automation that sends a notification to my windows pc via HASS.Agent. I've tried changing the notify.device entity in the automation but the Frigate blueprint seems to only work with mobile or any devices with the HA app installed.

Can i use local api to send a keystroke to my hass.agent pc?

I'm trying to use hass.agent for a simple task: i want to be able to send 1 key from HA to my windows pc. I'm not using MQTT, is there a way to use the local api for sending a keystroke or do I need to setup a MQTT server for this single task?

Newbie trying to get mqtt to work

Hey, im trying to get MQTT to work and connect from my home assistant green to MQTT using the hass.agent software but its not working, ive made sure to put in the same information but it never connects
Solution:
hey, thanks for replying, it seems to have worked now, i reinstalled everything, still didnt work but i watched a tutorial, im more of a visual person so yeah, all good now, but now my geolocation with my phone when i leave my house, my pc doesnt turn off or on, dunno if its my mqtt or just my phone being weird

Is there any way to change the shutdown wait period?

I feel like 1 minute is a bit long. RPC shutdown can configure the delay time.
Solution:
you can use the shutdown command configured as a custom command - https://github.com/hass-agent/HASS.Agent/discussions/129

No media player entity

I have installed the latest update (both satellite service and client), it's connected to HA instance and works well, except I don't get any media_player entity in my HASS.Agent device. This was broken for me before the update was installed and the update hasn't fixed it, I tried restarting PC, restarting HA (running on rPI), disabling and enabling media player functionality and nothing works. Additionally, when trying to consult media player documentation, I get 404 error. Can I do something about this? Do you need more info?...

sensor and command from hass intégration?

Hi, in the original version I used to see all the sensors and command directly inside the HASS Agent intégration page, now I can see them only inside the MQTT integration. Is there any way to get them back on the HASS Agent integration near the media player? Thank you...
Solution:
The commands/sensors only show in the integration if you use local api

PC On/Off status as sensor?

I have a button on my dashboard to turn the pc on/off remotely using WakeOnLan and Remote Shutdown, but if I turn the PC off or on manually it doesn't update the state of the button. Is there a sensor on HASS.Agent to just purely detect if it's on or off? I have this so far, but it won't change the state of the button when the PC is switched off because HASS.Agent's sensors just become unavailable, they don't report 0. Anyone got any ideas? ```alias: PC ON/OFF description: ""...
Solution:
have you considered using the Ping (ICMP) integration to detect whether the PC is on or off? https://www.home-assistant.io/integrations/ping/

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.
Solution:
Well Updating to the latest beta seemed to fix the issue

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):...
Solution:
Solved in 2.1.0
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?
Solution:
I'll take 2.1.0, merge the test branch and ping you here 🙂

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
Solution:
Fixed in 2.1.0+
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.
Solution:
Just to close this thread HASS.Agent currently has a websockets option that doesn't require MQTT, however it does require access to your home assistant server with websocket url included.

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.
Solution:
So i got it all working. I just removed everything off my pc and ha and reinstalled it all. The one thing that tripped me up in the docs on the "latest" branch is you don't have the new integration setup but it is on the "beta" branch. Other than that I was able to get everything up and running without issue.
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 ...
Solution:
hm, I see the HASS.Agent version is 2022.14.0 - one of the original builds
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. ...