Only media player discovered
Hi! I'm quite new to using HASS.Agent, and have run into some problems when setting it up. I originally installed the "old" (not forked) version, but only one device with no entities was discovered. I therefore tried to download the forked version, with the new HASS.Agent 2 integration. I removed all integrations and programs beforehand, but still only one device discovered. This was now the media player, which works as expected. I am still missing the main device with all the sensors.
I'm not sure which details I need to add for you guys to help me out, but I'm hoping there is an easy fix to the problem ๐...
Solution:
Sensors/commands show under the MQTT integration
Is it possible to turn on a tablet screen?
I have a Surface setup to never go into deep sleep. With IOTLink I was able to wake the screen with an automation. Is that possible?
Solution:
There is a command that simulates a keypress that should wake the screen (assuming the device is really not sleeping - including s0ix sleep aka modern sleep)
Satellite service not respecting "round", "ignore availability" and "advanced issues"
@SpikeyGG I've created a thread here so it's easier to have the conversation confined ๐
Solution:
Fixed in 2.1.0+
Can't change audio output until restart of hagent
idk how to reproduce yet. I'm on the latest available beta.
II have one audio sensor that I use to get e.g my headphones speakrs whatever else I have connected
I use a dropdown select with data from that sensor. This works, I get the exact names, perfect so far!...
command run through powershell not working
i'm trying to run a simple command from here: https://github.com/nathanbabcock/nightlight-cli . i installed it as nodejs, but it seems to run through command line or powershell just fine, but when i try to input the command same as I would there, it doesnt work. i've searched around for a while and haven't been able to figure out anyway to make commands from this work. help figuring this out would be super appreciated
Solution:
Thread closed
Issue was with PATH, system needed to be restarted due to changes to PATH...
Can`t send notifications to windows
First, sorry for my english, this is not my native language
I searched a lot trying to find the answer for this question, even in the questions below
i receive test notifications, my agent its up and runing
i've created the script to send the noficiation too, and it's permited to send notification, but its does nothing...
Solution:
You was right, the logs was not showing anything, when i used the mqtt explorer as you recomended,i find out, for some reason, my pc was still showing as using the old vesion of hass.agent, i just uninstaled and reinstaled the program, and every thing works now
thanks a lot for your time and effort...

Setting Up Notifications
I am attempting to implement a solution to allow home assistant to send my windows PC notifications, I have installed HASS.agent client on my computer and have enabled the local API on port 5115, when I navigate to my internal IP & port I get 'HASS.Agent Active' however when I enter my hostname (internal ip) within home assistant it immediately says 'failed to connect'. I only mention it's immediate because when I specify an incorrect port/ip combination it takes some time before failing to conn...
Solution:
is the local api an only option (asking about mqtt)?
App keeps crashing lowkey
It stops working randomly and when I check the logs there's an exception. Last time I reported the app randomly stopped working you told me it's my config. it is not.
Solution:
so I guess it should be good
Platform mqtt does not generate unique IDs upon updating to beta2
Hey,
thanks for the awesome update!
Just updated to beta2 from beta1. I simply ran the installer and followed the prompts and chose migratation. If came back fine, except 2 of my sensors command config sensors came back to HA with the
does not generate unique IDs
.
...Solution:
here's what I did. I ended up deleting it in Hass.Agent configuration, then in MQTT explorer on HA side. Remade the sensors and they are now working without errors. Maybe justa glitch somewhere.
Use for a HTPC
Trying to see if I can use this program to have home assistant trigger specific programs to start/stop on my pc. So far Iโve not seen it actually stated if itโll work or not. Has anyone used this in that manner.
Solution:
So just open and close programs? Definitely doable
Removing old duplicated entities.
Hello ! I installed the old HassAgent, having only played with sensor and commands, but then migrated to V2.
Used the compat script in #entity-names , but I still have duplicated entities in my MQTT integration.
I Decided to go back from scratch, and indeed the new entities has been deleted, but I can't remove the old ones (the underdogunderdog* ones), because "Entities can only be removed when the integration is no longer providing the entities". And in truth, I see the sensor being active, but with unknown status....
Solution:
Resolved by going into MQTT explorer and clearing leftover topics from pre-migration.

Possible to switch users?
Hi everyone! Is it possible to switch / log in a user from HA?
I have an older Surface Pro which is used by all family members. I'm thinking about using it as a HA dashboard when it is not in use. My idea is, anybody can grab the computer with its own user and when the computer is idle but connected to power, The user is automatically switched to the HA dashboard user. Maybe there is another way to achieve somthing similar, but I did not find a solution yet....
Solution:
You can't change which user is logged in due to security concerns in windows. You would have to make every user logout and login to an admin/ha user when they are done unfortunately.
Can't send notifications
I deleted all of my computers from the original HASS.Agent integration and restarted HA. The integration was gone and MQTT found all of my computers. I then installed the forked version via HACS custom repository. I then hit the configure button for all of my computers. However if I try to send notifications the notify service has not been configured automatically. HA can't find service notify.PC_NAME. When I look at MQTT Explorer under hass.agent I see them under devices and media_player but nothing about notifications. I have the most current version of HASS_Agent on my pc and the notifications test is working.
Any suggestions on how to get this working are greatly appreciated....
Solution:
You are correct again. I uninstalled and re-installed and am now able to send notifications once again. Thank you for your patience in helping me get this resolved. Getting old is a bitch. I should have read the documentation steps for installing more diligently.
Jatoxo - Integration device name mismatch
@Jatoxo
Solution:
Then you need to use something like mqttexplorer to go into the hass.agent topic and clear the old data
How to limit notification
I have setup a notification on my doorbell camera with frigate that sends notification whenever there's someone near the front door. The notification is working great with the option to open the camera live feed, but it just keeps on spamming me with notifications until the person is not detected anymore. Any tips or suggestion would be awesome!
Solution:
Yep, just checked:
Make sure automation is set to single
Add a time delay of 5 mins or so in the steps...

How do I send a notification
I cant figure out how to send a notification to my pc
Solution:
OK so I don't know if something changed overnight but its now working.
Mute Status of Input Device
I don't seem to be able to get the muted status of my device from HASS.Agent. I'm on Windows 11 Enterprise 22H2 and running HASS.Agent 2.0.1. There are many entries in "AudioSessions" and there is an entry for Teams that does report changes in PeakVolume, just not muted, nor does the default_input_device_muted show anything. I've tried with both the CTRL+SHIFT+M and WIN+ALT+K to mute the mic. The default audio input device shown in HASS.Agent is the same as is used in MSTeams and is the default...
Solution:
RE: https://discord.com/channels/1173033284519862392/1173033285845266515/1245689413770416210
The problem here is the same as with discord, teams does not tell windows and by extensions hass.agent if it is muted or not...
HASS.Agent closes when switching monitor profiles
I have a 2 monitor profiles configured through Display Fusion, hotkeys configured to choose between them, and HASS.Agent broadcasting them to Home Assistant - When I switch profiles, HASS.Agent seems to close itself, cutting off my profile switching options in Home Assistant. I believe a prompt mentioned something about scaling.
Any thoughts on how to resolve this and keep HASS.Agent running when switching between monitor profiles?
Thanks!...
Solution:
Updating to the beta seems to have resolved this issue
Get discord mute status
Hi, does someone know of a way to get the current mute status of discord. I'd like to colour a light based on mute status but it seems quite hard to get info out of discord locally.
Thanks!...
Solution:
For anyone finding this thread:
Discord does not work nicely with windows mic status. There is at the moment no easy way of getting the mic status unless you use something through discord's own API. As this is nothing to do with Hass.Agent its not possible at the moment....
Logger: homeassistant.util.logging
I am getting this error.
Exception in updated when handling msg on 'hass.agent/devices/MIKES-PC': '{"serial_number":"776872ee-5f6c-4070-8cd1-d79912566601","device":{"identifiers":"hass.agent-MIKES-PC","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.19045.0","name":"MIKES-PC","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration....
Solution:
you need to install the forked integration: https://github.com/hass-agent/HASS.Agent-Integration?tab=readme-ov-file#installation