barrelltitor
barrelltitor
HHASS.Agent
Created by barrelltitor on 1/24/2025 in #💬・get-help
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
2025-01-24 17:24:46.891 +02:00 [INF] [MEDIA] New state: Paused
2025-01-24 17:24:54.969 +02:00 [INF] [MEDIA] New state: Playing
2025-01-24 17:28:57.860 +02:00 [INF] [MEDIA] New state: Paused
2025-01-24 18:27:53.691 +02:00 [WRN] [MEDIA] No MediaSession active
2025-01-24 18:27:54.797 +02:00 [ERR] [NET] [ConnectionRefused] No connection could be made because the target machine actively refused it.
2025-01-24 18:28:40.049 +02:00 [INF] [HASS_API] Server recovered from failed state
2025-01-24 18:59:45.782 +02:00 [FTL] [PROGRAM] FirstChanceException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Http.HttpConnection.<CheckUsabilityOnScavenge>g__ReadAheadWithZeroByteReadAsync|45_0()
2025-01-24 17:24:46.891 +02:00 [INF] [MEDIA] New state: Paused
2025-01-24 17:24:54.969 +02:00 [INF] [MEDIA] New state: Playing
2025-01-24 17:28:57.860 +02:00 [INF] [MEDIA] New state: Paused
2025-01-24 18:27:53.691 +02:00 [WRN] [MEDIA] No MediaSession active
2025-01-24 18:27:54.797 +02:00 [ERR] [NET] [ConnectionRefused] No connection could be made because the target machine actively refused it.
2025-01-24 18:28:40.049 +02:00 [INF] [HASS_API] Server recovered from failed state
2025-01-24 18:59:45.782 +02:00 [FTL] [PROGRAM] FirstChanceException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Http.HttpConnection.<CheckUsabilityOnScavenge>g__ReadAheadWithZeroByteReadAsync|45_0()
After it's just other "new state playing" or paused or etc
7 replies
HHASS.Agent
Created by barrelltitor on 1/15/2025 in #💬・get-help
Restarted, config files now refuse to load
No description
9 replies
HHASS.Agent
Created by barrelltitor on 9/7/2024 in #💬・get-help
HassAgent no longer starts up after restart
No description
12 replies
HHASS.Agent
Created by barrelltitor on 6/28/2024 in #💬・get-help
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! Now, I have an automation that on change of the dropdown changes the audio output via mqtt command on homeassistant/button/MainPC/setaudiooutput/action This also works! But sometimes it doesn't until a restart idk why yet though. It almost always happens when I turn off my monitors and go to sleep. I use smart switches to actually turn them off, not sure if related.
80 replies
HHASS.Agent
Created by barrelltitor on 3/23/2024 in #💬・get-help
Agent using 20GB+ RAM
Unfortunately I had to close it as I was running out of RAM, and I'm not sure what happened. I went to the store, my monitors went to sleep, and when I came back I found discord and other stuff frozen or crashed, + hass agent using 20 somethingGB RAM Where should I look for logs or anything that can help us figure out what went wrong? I haven't re-opened it yet just in case that might overwrite some logs or something
65 replies
HHASS.Agent
Created by barrelltitor on 2/28/2024 in #💬・get-help
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:
service: mqtt.publish
data:
topic: homeassistant/button/MainPC/PowershellCustom/action
payload: bt.ps1 -BluetoothStatus {{ btstatus }}
service: mqtt.publish
data:
topic: homeassistant/button/MainPC/PowershellCustom/action
payload: bt.ps1 -BluetoothStatus {{ btstatus }}
But now it doesn't work. Running the powershell command manually works just fine
73 replies