HASS.Agent

H

HASS.Agent

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

Join

Custom command works if command is .bat file but not if the commands itself is entered

I have the following command
"C:\Program Files (x86)\Sound Volume View\SoundVolumeView.exe" /SetSpatial "2- B10PRO\Device\Speakers\Render" ""
"C:\Program Files (x86)\Sound Volume View\SoundVolumeView.exe" /SetSpatial "2- B10PRO\Device\Speakers\Render" ""
which references an external application, but it runs fine if i have hass agent execute a .bat file that contains the command. If I put the command directly into the command field, however, it simply doesnt execute. I checked the log files, I see nothing at the relevant timestamp...

Too many keystrokes

This thread was auto created from this message by @johnsontom7827. Just getting started and I'm struggling with keystrokes, it seems to many keystrokes get sent....

Restarted, config files now refuse to load

I have made 0 changes, I even had the 3 json files open in notepad++ for months without reloading them even once. I copied the text inside them, put them in a new tab, and reloaded the file. They were identical. None of the files have been modified since 2024 "LastUpdateNotificationShown": "2.1.1-beta2", Here's my config files too...

Button Just opens up history

Hi there. I've setup my button however when i press it, it just opens up the history? What am I doing wrong? ```yaml - type: buttons entities: - entity: button.deskpc_lock...
Solution:
@Shifty / Arlo something like this works tho 🙂 ``` type: entities show_header_toggle: false state_color: true...
No description

I set up one sensor - it shows in entities but not in the device?

This appears to be by design but the first test sensor I setup shows under entities in HA but doesn't show up under the device info for the computer that it is running on? Wouldn't it make sense to combine sensor/entities here to make it easier to manage?
Solution:
this is the mediaplayer/notifikation sensors/buttons shows upp on the device uinder mqtt yes, it is confusing whit two seperate devises for the s...
No description

Removed a satellite sensor, but still shows up in HA

Hi! I encountered a (potential) issue. I created a satellite sensor, but decided to remove it because of a name change. But after that it still shows up in HA, with status unknown, while being gone in the configuration....
No description

migrate hass agent to a new device?

is this possible somehow or do i need to set everything up all over again
Solution:
ok so, in general you need to backup whole config folder

no commands/sensors

for around a week ive been getting no entities, rolled back to 2.1.1 with no success. discovery notification also not clearing after setting up the device but might not be important
Solution:
The commands/sensors should be in the mqtt integration
No description

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
Next