HASS.Agent

H

HASS.Agent

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

Join

USB Human Presence sensor does not show at the internaldevice sensor list

I use a Lenovo Smartthink HUB as a Home Assistant Dashboard and has a Internal USB Human Presence sensor but does not show up on the sensor list is there a way i can use that in HASS Agent?

LastActive Sensor Inconsistent

I am trying to use the lastactive sensor in order to turn off my busy light when away from my PC. I have found this works, but only sometimes. It is very inconsistent and I am making no changes to config between when it works and doesn't. I assume there is something on my PC that may run on occasion, making the system think it is active....
Solution:
@Subjunctive @Amadeo you may find this of interest. I wrote some, definitely not ChatGPT authored code... And I managed to figure out what was causing it. Essentially using the RawInput API and then logging the Vendor and Product IDs. I then used USBTreeView to check which device had that ID. Its a custom control board for my sim pedals spamming like crazy....

Sensor instance not always available throws breaking error - how to ignore?

I have just started out with HASS.Agent. My use is only for providing sensors for the Windows server it is running on. I have it up and running with the sensors showing up fine in HA. The problem is when I want to watch Performance Counter sensors related to processes that are not always running. If I add them when the processes are running everthing works fine, for then. If at a later time the process is not running when I save sensors configuration or when I (re)start HASS.Agent, it throws an error - e.g. on start "Error loading sensors: Instance [process name] does not exist in the specified Category". If I edit sensors configuration and try to save the edits and the process is not running, I get a similar error and the configuration edits are not saved. ...

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