HASS.Agent

H

HASS.Agent

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

Join

HASS.Agent Client bugs out if you leave Satellite service open when closing the main window

Holy bug reports 😂 Replication: - Open HASS.Agent - Open Satellite Service config...
No description

HASS.Agent do not change sensors/commands if config is set during host downtime

Admittedly a very silly bug, but a bug nonetheless Replication: - Disconnect from network - Change sensors/commands...
No description

HASS.Agent Satellite randomly stops sending out MQTT after hibernate or sleep

Setup: - HASS.Agent 2.1.0-beta1 [BETA} - Tailscale connecting the desktop to Pi, requesting DNS from PiHole - Docker on Pi - mosquitto 2.0.18...
No description

Autodiscovered 2 instances instead of one

Hello! I have problem (probably) with HASS Integration. I migrate from older verison of HASS.agent. ...
Solution:
Otherwise use mqttexplorer

Keyboard Media Keys

Hi all, Is it possible to use the media keys on my keyboard (Corsair K95) as a hotkey in Quick Actions? Cheers!...
Solution:
Thanks Amadeo, I can not get them to show anything when attempting to set them as a hotkey but I've found a workaround, using iCue to set the keystroke for the play/pause key, then assign that keystroke in HASS.Agent, this is working perfectly. Now I've got a script to work out what in the office is playing (Plex/Youtube) and on what (iPad/TV/PC) and pause it 🙂

mqtt discovery on every update bug

Hey! I'm currently in HA core beta, and was looking for other bugs but ended up noticing that hass.agent does something that's not very efficient on the home assistant side, it sends the discovery payload on every update for every sensor which cost CPU time on HA. For example...
Solution:
will be part of 2.1.0-beta1

Powershell command no longer working after update

Hey! Is there any way for me to log commands? I have a custom powershell command that's just blank so I can run anything I need via home assistant through it, and I have in my path a script called "bt.ps1" Before updating & migrating from the old version, this worked perfectly fine as such:...
Solution:
yeah i found out, because the apps have the exact same name and I started them from windows I kept starting different ones each time The windows bar has a nifty feature when you have 2 programs with the same program name whenever you type it in the search bar it ALTERNATES between the two So that messed up the config somehow, looks like on the new version the mqtt topic changed...

Sensor becoming unavailable after every update

Hi folks. I've got a PerformanceCounter sensor set up, and it's reporting 'Unavailable' after every update (see screenshot). Does anyone know how I can make it remember the last value, rather than switching? Otherwise, I can't set up automations with triggers like if under threshold for X minutes, do something as it's frequenting switching between a value and unavailable....
No description

ActiveWindow name parsing issue

Picture says 1000 words Not really sure what's going on at the moment with all the parsing issuing...
Solution:
2.1.0
No description

Triggering Powershell not working

Following on from https://discord.com/channels/932957721622360074/1208148867799982112 Currently running the forked version, but unable to get Powershell to trigger the command Switch-Desktop -Desktop "Desktop 2"...
Solution:
Ah, escaping the quotes fixed it for the command too
No description

Agent not starting on a fresh install

Just started a fresh win11 pc and installed hass agent. The only thing I modified was the install path which I set to program files - hass agent. I double click it and it just won't run. I see the satellite service running in task manager though, just not the main one. My pc specs are brand new last gen everything...
Solution:
Ok so after careful consideration (of about a couple secs or so) I just decided to uninstall and install back up again using the default dir instead. It didn't make sense to my neophyte brain that it would now work just because of that, but lo and behold, it actually did, so... sorry I can't help track the ticket but at least I am now using it happily heheh.

HASS.Agent crashes on explorer.exe restart

This is kind of a weird one - I use virtual desktops a lot and I have 3 monitors so I'm pretty constantly flipping between 15 or so desktops all day. Windows 11 doesn't always love me doing this, and due to some issue I haven't worked out, the taskbar will get jacked until I restart explorer.exe. This is normally a non-event, taskbar will come back and system tray and everything is happy except HASS.Agent. When explorer.exe restarts, HASS.Agent will crash silently. Windows event log deets in the thread. To re-create: Open Win11 task manager, find explorer.exe, and click "restart task"....
Solution:
Just installed 2.1.0-beta1 and the crash problem is resolved. Nice work!

Notify service missing if offline when rebooting HomeAssistant

When rebooting HomeAssistant, if my PC is offline (which HASS.Agent is installed on), the notify service doesnt exist (and thus triggers repair notices from integrations like Spook) and rebooting homeassistant again after the device is turned on seems to be the only way to automatically clear the repair notice. Is there any way for the entity to remain in HomeAssistant and just change its status to Unavailable similar to how other entities do when the integration fails to set up instead of remov...
Solution:
Try this: 1. Uninstall hass.agent integration 2. Disable local API in hass.agent on PC ...
No description

hass agent CONSTANTLY crashing after minutes of it running

i have been using it for a little while now but recently it has started not updating the sensors and promptly crashing (wont restart, having to close it in task manager) i have no idea what has/is causing it i have tried to do a repair install to no success and i cant find much in the log

Running a powershell script via HASS.Agent causes it to run script more than once.

I have a script which outputs text to a text file with including the time that the log happened. When running this via PowerShell by itself, it works perfectly fine. When running via Hass.Agent it repeatedly runs. This is a HASS.Agent sensor which retrieves data for Home Assistant whilst also writing to a log file of the result.
No description

Trouble reconnecting to MQTT after resuming from sleep

Hi! I'm having an issue with Hass.Agent 2.0.1 where everytime the computer resumes from sleep there's a problem reconnecting to the MQTT server. All other connections seem to work fine, but MQTT keeps saying "Connecting.." for about 60 seconds, then fails and subsequently reconnects immediately. Is there anything that can be done about this? Let me know if there are logs or other info I can provide to narrow down the cause.

AutoImport or general Import

Hey there, i love your tool and iam creating e little game dashboard. There was a little tool for the Original hass.agant (https://github.com/LAB02-Research/HASS.Agent.AutoImport) which automatically created Commands from Steam Shortcuts. This tool dont work with your Version (2.0.2b.) Do you think it is possible to rewrite the tool? Or maybe do you think to Creat vom Import features, maybe from an Excel File?
Solution:
From the quick glance at the code, technically perfectly doable, timewise however I cannot give any promise on this

Arithmetic with WMI Command Type?

Anyone know if there is a way to do arithmetic with WMI type command or is it just plain WMI? I could technically use Powershell just trying to avoid adding an extra layer of abstraction. For context, I am trying to solve the issue of Windows not properly reporting CPU usage, from taking a look at the data available in Win32_PerfFormattedData_PerfOS_Processor even though the usage isn't always accurate from my observation the Idle time does seem to be, which means I should be able to abstract the Usage % by using 100 - PercentIdleTIme. Again, I could technically also do this within HA just sending it the straight Idle time, just extra steps for the same goal 🙂...

Old Hass.agent system service not being removed

When migrating the old hass.agebt service is not removed.
Credit to @JonnyBergdahl for the report...

Sensors not Updating (on change or publish)

New Hass Agent user and am struggling to figure out why my sensors are not being updated. They work fine when I test them out in the Hass Agent app and they get pushed into HA successfully. They are set to auto update every 30 seconds, but do not - even when the value changes (I understand that they must change or it will be ignored if the value is the same). Even using the buttton press to publish all sensors does not work. What DOES work is if I go in and “modify” a sensor and store and activate them - then all values get revalued and pushed to HA perfectly. Same with if I restart the Hass Agent app - it will refresh values just fine, but only one time. ...