HASS.Agent

H

HASS.Agent

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

Join

Windows app no UI, shows up in task manager

Hi, not sure what happened but starting yesterday, one of my Hass.agent instanaces has stopped working. I see the app running in task manager but there's no icon in the taskbar. I tried reinstalling it and am still having the issue.
Solution:
Seems ike appsettings.json was corrupted. Renamed the existing one, reinstalled, we're back in action

Monitor Wake vs Sleep

Monitor wake is not working but monitor sleep is, anyone have any ideas why? I have the commands set on the pc side but in home assistant only sleep works and not wake
Solution:
I've realized it works now with an automation I had set up still just not the button anymore

Unable to control media player (except for volume)

I've just reinstalled HASS.agent, updating to the latest 2.1.0-beta1 on both PC and HA, and am able to see my media_player in HA, including cover art and progress bar. However, I am unable to use next, previous, or play/pause. Tried in Tidal, Windows Media Player, and YouTube Music (progressive web app). Volume controls are the only bit that work. Any ideas on what to look at?

Enhance notifications

Hi, I installed HASS.Agent today and I have a couple of questions about notifications: - is it possible to change the notification style and make it more prominent? E.g. a pop-up window - is it possible to create an automation that continues differently depending on the answer on the notification itself? E.g. clicking the Ok or the Cancel button? Thank you for your assistance....
Solution:
hello 🙂
is it possible to change the notification style and make it more prominent? E.g. a pop-up window
not atm I'm afraid, HASS.Agent uses the windows API to show notifications, creating a popup ones would basically mean creating our own framework from ground up (not saying that it won't happen sometime, just not possible atm ootb) ...

svchost/dasHost using 40+ Gb of ram

I’ve tried the beta4 and it still has the same issue what causes it but both processes. Just typing this out on my phone so ill post my logs here when I get back home. Just wanted to test the waters so to speak lol

Using 2nd GPU sensor

Hey I can't seem to find a way to make the GPU load and temp sensors to read my second/main GPU instead of my first/integrated GPU
Solution:
maybe the devs have a way to do this, but if not, you can use libre hardware monitor and the wmi query sensor WMI Query: SELECT value FROM Sensor WHERE Name LIKE "%GPU Core%" AND SensorType="Temperature" AND Parent="/gpu-nvidia/0" WMI Scope: \\.\ROOT\LibreHardwareMonitor you might need to mess around with the parent if it doesnt grab the right gpu...

WMI Query sensors do not work if the WindowsMediaInstrument service restarts

I know this is a bit of a rare off-case, so I understand if y'all dont wanna do anything about it. What happens is, if I restart the WMI service (sometimes that service acts up when I restart my computer), my WMIQuery sensors wont work, until I go to "modify" on one of them and press "Test WMI Query". Again maybe this is too much of an off case but I wanted to at least note the issue. Maybe there's a way to work around this somehow....
Solution:
ok, I think I've fixed it, I'll create a test release tmrw and ping you with link

Error in Logs every few seconds

Im getting this same error every few seconds and im not really sure what its asking. I have the latest agent on two systems. Intergration. Any help would be great. https://pastebin.com/1zZW2Zsd...

Cant install Agent?

ive tried to reinstall the agent a few times, I had it installed and working, it seemed to crash, then once i reinstalled it it gives me error "c:\users\david\appdata\roaming\lab02research\hass.agent installer\2214.0.3\hass.agent1.cab. verify that the file exists and that you can access it" after i agree to the licence terms and conditions and clicked the big green install button I have tried: uninstalling it using the built in uninstaller using revo uninstaller in case it had some previously saved settings causing problems, revo uninstaller doesnt show hass agent as being on the computer at all ...
No description

Server alive sensor?

So what sensor should I setup to get a proper "Server is alive"?
Solution:
the only reliable way I think is to use the "homeassistant/sensor/<device>/availability" mqtt topic as HASS.Agent uses it as last will message

lastactive and remote desktop question

Hi from the newb. I use last active as part of monitoring locations. I've found that when using remote desktop, which I do often, the last active triggers as if I was actually at the machine. I get why this happens. The question is if there is a reasonable work around that anyone has come up with to monitor if a human is actually at the station? Monitor keystrokes or mouse movement?? TIA...
Solution:
maybe you can use this to have a sensor in HA that is true when RDP session is active and when not?

Unable to send images via notification

HA version: 2024.11.1 HASS.Agent version: 2.1.0 HACS "HASS.agent" version: v2022.11.9 HACS "HASS.Agent 2 Integration - Media Player & Notifications" version: 2.1.0-beta1 ...
Solution:
relative notification images (without https://....) were fixed in this version https://github.com/hass-agent/HASS.Agent/pull/186

cmd.exe and conhost.exe processes opened by Hass.Agent never close

Aplogies in advance, because I don't have much information to diagnose te issue, but I noticed i have lots and lots of cmd.exe and conhost.exe processes active in my process list. In trying to figure out what caused this I ended all the active processes, left hass agent closed for a few hours, and none of the processes in question were ever opening. Within a few minutes of opening hass.agent they beginning appearing again, slowly over time. I suspect this might have something to do with sensors or commands that I have active but im not sure how to better diagnose the issue. I've attached 2 screenshots showing my sensors and my commands....
Solution:
i dont think so no. i moved to a new computer recently but i also changed some of my commands around, so it seems clear of these extra processes, at least for now
No description

Mqtt not connecting

Unauthorised error in broker console
Solution:
I don't know why It doesn't, but with de local IP and the Z2M pass runs

shutdown command / Wake on Lan Issue

Hey all I have come across an issue where if i use hass.agent to shutdown my pc (which is main reason i use Hass.agent appart from notifications) causes my pc to not be able to Wake on Lan. WOL works if i shutdown the pc normally through the start menu, i have also tried running a custom command to shutdown aswell, but this issue still remains. thank you in advance any help is greatly appreciated...
Solution:
thank you i revisited my bios, and found power on pcie was disabled, now wol is working, however num lock still remains off when powered on via wol,

HA crashes because of HACS integration

My homeassistant instance keeps crashing in about 30 sec after startup. At least the front end. From logs, I think it's because the hass.agent integration. How do I get rid of it without the front end? I tried to rename the folder but the same error is happening. 2024-11-01 22:21:20.168 ERROR (SyncWorker_5) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/PC': '{"serial_number":"24ce56b4-001a-410b-a5cf-5efcd4160827","device":{"identifiers":"hass.agent-PC","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"PC","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent_disabled/init.py", line 144, in updated...
Solution:
looks like you're using the original ingration and not the forked one

Powershell Command not running

Hey, I have a PS command like so, this works via PS directly. I can see the request in MQTT Explorer, but it doesn't seem to trigger via the agent and im not sur ewhy. Any ideas?...
Solution:
Nice, thank you, will include it as part of full 2.1.1
No description

How to use SetAudioOutputCommand?

Hey folks, I have recently started using HAAS.Agent (long time HomeAssistant user,. new PC user). and I'm trying to use SetAudioOutputCommand to switch between my headphones and my speakers. Unfortunately, when I click the button in HomeAssistant the audio output doesn't seem to change. I suspect that it might be because I'm using the wrong "name" for the audio output (as you can see in the screenshot of my audio settings, each device seems to have two names). When I look at them in device manager, it has a different name which seems to be the two names in settings combined. Which of the names am I supposed to use? Thanks!...
Solution:
Typical... after posting this I decided to try the long name as seen in device manager and it works. I'm an idiot - but I will leave this here in case any one else ever looks for it!
No description

hey

how do i get notification form home assistent to my pc

Sattelite service not installing "Unable to install, binary location unknown"

What can I do? Kinda new to HA
Solution:
Then, select advanced in the searching mode, this will basically look for files and registry that are still on ur computer, related to hass