HASS.Agent

H

HASS.Agent

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

Join

hass.agent media_player

in my mqtt I see hass.agent and below that media_player and below that my computer and the the duration,currentposition,state, volumn etc... how can I see this in home assistant? I don't see that I can add that as a sensor that goes to the home assistant...
Solution:
ok, - thank you - now with 2.1.0-beta1 it works and I can get the state and other information...

A few questions about HASS.Agent recent changes

I've used HASS.Agent for a few years to send toast notifications to my PC. They recently stopped working and I finally decided to explore why. I've poked around and I have a few questions. (1) There is a lot of talk about release 2.0.0 and I am confused because I am using version 2022.14.0 which would seem to indicate something has changed. Has HASS.Agent been reborn under new custodians? Sorry if I have been under a rock. I found documentation on how to migrate, but migrate to what? (2) In the past I have solved issues on the HA side by deleting the HASS.Agent integration and restarting HA and in no time autodiscovery finds the Agent and all becomes well again. That isn't the case anymore. Plus, my HA autodiscovery actually finds two HASS.Agent clients, including one that was on an old PC I haven't turned on in many months. How is HA "finding" this old agent? Strange....
Solution:
Please go to #👋・new-comers

Failure setting up integration

Hi everyone, Since the last update of the integration to 2.1.0-beta1 I get the following error message in my log in home assistant: `Traceback (most recent call last):...

new API-key dossent work

ha 24.5.3 agent 2.0.1 deleted the old API-key thinking it was unused sense i have disabled local-API. Relishing i needed it, i made a new long term access token and added it to the agent. clicking "check connection" it said it was ok, but after sawing settings and reboot it failed to connect....
No description

Help with missing entities on new installation

After upgrading to HA v2.0.1 by deleting everything and starting from scratch, the HA integration is not finding the appropriate notify service entity (see screenshot). I'm also missing the media player entity (see second screenshot). I've tried restarting the windows agent and home assistant. Any other suggestions?
Solution:
good to hear 😄 for anyone else that looks at this thread the link is: https://github.com/hass-agent/HASS.Agent-Integration...
No description

Looking for help with "stopped" system status items.

Looking for help with "stopped" system status items. Have been using HASS.Agent for years without issue. Trying to update to v2.01. Was having problems with the migration, so deleted everything and started from scratch. I'm getting the yellow "stopped" status for Quick Actions, Sensors, and Commands. Used MQTT explorer to delete all prior instances. Tried new API tokens. Can't think of anything else. Any suggestions?
Solution:
if you don't have any sensors/commands/quick actions configured then it'll report as stopped
No description

HASS.Agent not functioning after PC rebuild

I had to do a complete rebuild of my main PC and lost config backups as well; HA installed on another machine. I ran the installer... everything seems to be connected w/o errors, however, I cannot get them to recognize one another. Even though I've created a couple sensors in HASS.Agent, they do not appear in HA. I've reinstalled HASS.Agent via HACS. suggestions?...
Solution:
I'm going to start fresh. Since I have very few related uses, best to clear out all related entities and start over I think....
No description

Is it possible to run Powershell commands with a variable made in Node-Red/Home Assistant?

I have a input_select that has options for filenames. Is it possible to have that filename be sent into a message payload and have HASS agent receive it and launch a powershell process with the matching file on the computer?
Solution:
Ya, commands/custom commands can "accept" parameters sent with the action (if I'm not mistaken configuring an empty one and then sending the absolute path to script as action payload should just launch it) Although I must put it out there: from the security perspective that's not desirable :P...

Trigger Automation from Quick Actions?

Is there a way to trigger an automation from a quick action? I must be missing it. I've tried On, Toggle, and Play. Scripts will trigger with "on", but my automation isn't. I've gone to creating a script for the sole purpose of triggering the automating as a stop gap. 🍻 I apologize if I missed it in docs.
Solution:
have the quick action toggle a boolean helper with that as the trigger for an automation?

Missing notify.PCName Service in HA

I am Missing notify.PCName Service in HA
Solution:
Fixed with forked integration

Specified cast is not valid?

Just updated my hass agent to v2 and while I have start with windows toggled, it starts up and closes immediately. I looked at the logs and found this error below. I don't use Virtual Desktops, so how do I disable that? I'm running Windows 11. 2024-05-05 12:44:04.152 -07:00 [FTL] [PROGRAM] FirstChanceException: Specified cast is not valid. System.InvalidCastException: Specified cast is not valid....
Solution:
Log was too long for message, tried to upload a text file...either way, issue resolved itself when I disabled satellite service

Command to force Windows Update

Is there a trick to making command 'Wuauclt.exe /updatenow' execute a complete Windows Update?
Solution:
the HASS.Agent Satellite service runs with elevated privilages - having this command there will not require elevation, but I don't know it executing it from service's context will actually do anything

Screenshot sensor, fail state?

Is there a way currently where if the PC is asleep for example and the screenshot sensor has no data to either hide the card or display a line of text like "PC is not currently available"?
Solution:
i assume UI. 1. Add a conditional card 2. Add a condition for entity state 3. Set it to check that the screenshot is not unavailable...

media player disappeared

when i uppdated core to 24.5
No description

Microphone sensor showing ON when it's not.

RIght now I'm aseeing that the attribute is Discord, even though i'm not on a call.
Solution:
short/easy fix: close discord, open regedit, delete all discord keys except for the newest one long fix: idk, adding special code for discord seems kinda overkill, I'll need to think about it...

Auto Discovery fails at second device

Hi Guys, I Installed hass.agent at my windows PC and AutoDiscovery in HA worked fine. I can use motifications etc. Now I installed HASS:agent on a second device to use it there too. Installation worked fine, I use the same configuration as on the first PC (besides ClientID) but the new device doesn't show up in HA. Is there anything I may have missed in the process? Thanks for your help.
Solution:
@DrR0x we have a lot of work with the integration xD @Wankster could you please try this: remove all devices from the integration (so that none are "added"), make sure the HASS.Agents on both/all devices are running, restart HA (full restart, not only yaml reload) https://b.chihi.ro/FLhxAu.png https://b.chihi.ro/MWgXJK.png...

Process name

Hi, what is the precess name of hass agent in windows11? I sometimes notice the process crashing, and all sensors going unavailable. Suffice to say my whole house basically shuts down when HA thinks the PC "turned off" like this. Wanna set a scheduled event on crash to just re-run the process. Also I vaguely know how to do this but am not sure about the event number as trigger. ChatGPT says it's 7024. Is that it?
Solution:
the process is called just "HASS.Agent"

Window not appear using custom command w/out Low Integrity

I have created a custom command that launches a python script (which currently contains only a print and an input to test), however, launching it no window/terminal appears in normal mode (I see that the app runs from the task manager), while with low integrity mode it appears. This would be solved here except that past experiments I realized that low integrity is too restricted for what I need. Am I doing something wrong?
No description

Media Player unavailable

Hey, so after i moved from LAB02-Research app the auto discovered media player is unavailable with the old name of my computer i reinstalled the app rediscovered the hass.agent intergration with no luck....
Solution:
Nevermind, after messing around in the mqtt explorer and deleting old entities of the media player and removing hass.agent intergation from home assistant and rediscovering it worked
No description

Getting wake lock status into HA

Hi! I am so glad to see someone has adopted this, since the project itself has been a life-saver in so many situations. I am trying to get my wake lock state into home assistant to have one more thing to check to make a decision if the system should be suspended or not - and I did see a powershell sensor has been integrated, which is really helpful for that, because now I just could do an "powercfg -requests | Select-String -Pattern "PROCESS"" or something as a quick hack - unfortunately powercf...
Solution:
you can also right click -> properties -> compatibility -> tick run as admin