HASS.Agent

H

HASS.Agent

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

Join

Only *one* entity after install? 🤔

hmm.. I've just got this installed and communicating but I am not seeing much of any info from my windows station. All I see is a single media player. When I join things like a light bulb, I get all its entities like brightness, on/off, color and even things like wifi signal. With this setup I only see this one entity..? I must be missing something 🤔
No description

.Net desktop errors

Morning all I woke up to errors on hass.agent.exe starting up on my machine. Been running fine for years! Is this a me issue? Should i download and install teh suggested, or is it because i am running an out of date version or something?...
Solution:
let me now try and install 12
No description

Figuring the correct way to publish a payload for powershell

So I'm having trouble getting custom payloads working with powershell. I am running 2.1.1-beta3 and the latest 2.1.1 integration. I've had a decent play with possible variation on how to do this, and scoured the old and new docs, both github repos and general googling. At this point I figure I'm scratching my head. I have made a PowershellCommand via the ui and set the command to C:\quicksetdns\QuickSetDNS.exe /SetDNS "1.1.1.1,1.0.0.1" "{F41A4233-02DA-42D6-A97B-A2D12F9FE0CD}" which works a treat when I hit the entity button in HA, but what I'm looking to do is be able to set "1.1.1.1,1.0.0.1" via payload to allow me to configure the dns I'm using via home assistant...
Solution:
While I couldn't seem to get anything working using that example, I have found a solution. I made the following custom executor using C:\Program Files\PowerShell\7\pwsh.exe and use one of your example payloads from above: /SetDNS \"1.1.1.1,1.0.0.1\" \"{F41A4233-02DA-42D6-A97B-A2D12F9FE0CD}\"

Executing Powershell commands - execution context?

Hey peops, I'm wondering... I can set up a PowerShell command linked with a button in HA, so far, so well-known. I'm wondering however what the actual context of the command is. Environment seems to be that of SYSTEM (I see no user env vars in the process). What about the working directory? Where is the command executed? What privileges does it have? And especially, can I change the context? I would like to tell the command in which working directory it shall run etc. Would this be worth a feature request (if not already possible)? Cheers...

HASS Agent Notifications Stopped Working

I had notifications working, and now even the local test notification is not showing up. The logs just state it failed to create the notification, but is no more verbose than that. I am using a scheduled task to run this as admin (same user who has local admin privileges), seems to work fine when run normally. The admin account and my main account are the same. I am just referring to right clicking and running as admin....
Solution:
That doesn't work, hass.agent is user, satellite is admin

command does work with mqtt topic, works without

sorry to bring up another one of these 😅 i have a command i want to run
nircmd setdisplay monitor:0 1920 1080 32
nircmd setdisplay monitor:0 1920 1080 32
it runs fine like that, but i want the last 3 arguments to change so i tried to set it up as an mqtt action topic...

Renamed the HA host PC - HA still discovers the old PC name

Home Assistant is running as a VM on a Windows PC. I had initially named my Window host PC "HomeAssistant-PC" and had installed HASS.Agent. I renamed the Windows PC "HASS-PC" (shorter name). I uninstalled HASS.Agent from the Windows PC and cleared all directories (I think) and reinstalled. But Home Assistant continues to show "Discovered / HomeAssistant-PC / HASS.Agent / ADD IGNORE" and after manually adding "HASS-PC" to HASS.Agent it shows the "HASS-PC" as unavailable. Also, I see this (see below) in the logs for "HomeAssistant-PC" which may be a clue (?). I've deleted all entries in MQTT related to "HomeAssistant-PC" but entries come back. So, I'm guessing there is something I have not properly cleaned from HASS-PC. Logger: homeassistant.config_entries Source: config_entries.py:855...
Solution:
Never mind. I just restarted Home Assistant (again - not for the 1st or 2nd time) and now it sees "HASS-PC" not "HomeAssistant-PC". So, I think the problem is resolved. Sorry for the premature post.

Sometimes mqtt commands just don't work

I think it's audio related. The jist of it is I have headphones and speakers that I try to switch between using a zigbee button, but sometimes until I restart hassagent this won't work at all I think something is crashing and not recovering properly. Here's the -only- logs during this time ...

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