HASS.Agent: Windows client to receive notifications, use commands, sensors, quick actions and more!

Sorry I am just having a hard time understanding how this would work for this command. In IotLink you can just run commands/run to have something work in the cmd but I do not see how I can do this with Hass Agent. Just seems weird I would need to make a button or command for this to work.

I should have also mentioned there is an input helper variable I use which I think may be causing my issue

Hey @SamKr just got it working now. Thanks for the help!

Hey @Deathbot64,

Really glad you got it working! The reason hass.agent works with itself as the starting point instead of HA, is because it’s easier for the user: I can design a UI that users can easily click through, with explanations, checks, etc. Building something in yaml is inherently harder. But I still try to incorperate those features, for instance by providing actions for the commands.

It’s just a bit of a paradigm shift. Being able to create entities from HA is a nice idea though, I’ll keep it in mind for future versions, to accomodate power users.

Newbie here, I’ve just installed HASS.Agent and have it working fine on my pc and have MQTT sending to HA, i’m wondering how I then enable my sensors in HA ?

Do I need to add every individual sensor via the configuration.yaml file to make them visible in my entinties list ? If so, is there an easy way to do this or do I need to edit the config.yaml manually ?

I can see all of the MQTT data coming in via MQTT Broker, however my log file is showing this:

022-08-12 07:43:37.351 WARNING (MainThread) [homeassistant.components.mqtt.discovery] Received message on illegal discovery topic ‘homeassistant/sensor/HOME DESKTOP/HOME_DESKTOP_network_total_network_card_count/config’

2022-08-12 07:43:37.354 WARNING (MainThread) [homeassistant.components.mqtt.discovery] Received message on illegal discovery topic ‘homeassistant/sensor/HOME DESKTOP/HOME_DESKTOP_display_display_count/config’

Hey @stewie923, you just need to remove the space from your device name (so make it HOMEDESKTOP) or replace it with an underscore. Save & restart hass.agent, and your entities should show up, no yaml required :slight_smile:

Hey, thank you for the awesome addon!
Regarding the media player - any chance to speed up the “responsiveness” ? I am using the media player integration in HA to control/monitor a media player on a PC (connected to speakers). Right now, when changing tracks, or even the status play/paused, it takes a few seconds for the change to register in HA. Would be great if this could be sped up to feel more responsive.

Ah - thankyou very much, that was exactly the problem.

Well done to those involved on a great addition to HA.

1 Like

Hey @echo_Mark, thanks, glad you like it :slight_smile:

I agree that it lags a lot. Currently it’s being polled by HA itself to see if there are changes, but I’ll see if I can force an update.

I’ve noticed that the state of the media player keeps stuck in the playing state, when I have a video playing in the browser and I close the window before the state in HA has been updated.

HASS.Agent currently listens to media events, published by Windows. So by closing it, Windows never publishes the ‘stopped playing’ event. Guess I’ll have to extend it with extra its own checks on whether the application is still active.

I’m hoping someone can provide some (hopefully) obvious advice on where I’m going wrong. I have setup HASS Agent and am controll devices from windows. I can also control the windows device (eg. sleep).

I’m trying to setup the notifications now but am consistently seeing timeouts:

2022-08-23 16:50:36.446 DEBUG (SyncWorker_4) [custom_components.hass_agent_notifier.notify] Error sending message: HTTPConnectionPool(host='192.168.10.148', port=5115): Max retries exceeded with url: /notify (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fa679feb0>, 'Connection to 192.168.10.148 timed out. (connect timeout=10)'))

I have checked the endpoint and it is active. I have also tested from a browser. Does this error occur when there is blocking across the network? I have removed all LAN rules and no change in behaviour…any advice?

UPDATED: Firewall in Antivirus! I knew it would be something obvious. Apologies.

1 Like

This looks amazing! I currently use IoTLink to sleep my PC (PC is in a different VLAN than HA so MQTT is the best option). I also use it to set scenes and notify my family when I’m on a MS Teams meeting. I wrote a custom plugin for IoTLink to monitor Teams but it scrapes the logs and sometimes isn’t accurate.

I love the idea of monitoring the Microphone status, but my concern is that if I’m playing a game or other app that uses the Mic, then the family will be inundated with ‘Dad is in a meeting’ announcements. I thought about using the Active Window in conjunction, but I often switch windows while in a Teams meeting.

Would it be possible to create a sensor that shows the App that is currently using the Mic? This would allow more specific automations.

image
Thanks!

[ UPDATE ]
I did some additional snooping around the Discord server and it seems this feature is already planned!

1 Like

Yep it’s currently in the beta, but not reliable yet - it will be in the next release :slight_smile:

1 Like

Hi all
I’ve just added set HASS.agent to pull the temp from openhardware via WMI how do I get it to show as C degrees?

Im struggling to get this to connect. I have tried the IP of home assistant as well as the duckdns domain and even homeassistant.local but the test fails. Says check uri and config. (i am including the port by the way)
Not really sure what else I can try I checked the uri i checked the port forwarding if I go to the ip of my pc on the specified port I get HASS.Agent Active I even tried from my phone and got the same result. I already know homeassistant url works with either IP or duckdns so I am at a loss as to what Im doing wrong.
Any help pn this would be appreciated and if you need more info please let me know.
Could this be a https issue?

edit
Got it to work! Looks like I hadnt copied the token fully so it wasnt logging in but was also getting my ip banned in HA

You can use a template sensor, future version will allow you to set it in HASS.Agent:

https://lab02research.youtrack.cloud/issue/hassagent-10

1 Like

Good job on the fix :slight_smile: That’s a really annoying ‘bug’ in HA, not selecting the entire token. The next beta has a check that notifies the user if the token looks wrong.

1 Like

Hey, thanks so much for this app. It does everything I need and more! I will certainly buy you a cup of coffee.

There is only one problem, I have a Lenovo Legion 5 Pro and it doesn’t want to show me CPU Temp, it only shows cpuload. For GPU I can see the load and the temp.

The CPU in question is Ryzen 5 5600H, here is a picture from Open Hardware Monitor

Glad you like it! Currently, you have to use WMI to get the value:

https://hassagent.readthedocs.io/en/latest/wmi-examples/#fetch-cpu-temp-from-openhardwaremonitor-for-amd

There’s a pending ticket to implement it into HASS.Agent itself:

https://lab02research.youtrack.cloud/issue/hassagent-9

1 Like