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?
39 Replies
Look, i would be happy to give you that
but i would rather stop the crashing lmao
haha, fair enough
i only asked like that because I didn't want to trouble you for the long work
well, that, and I don't think I still have the logs
well, not to hurt him but im not the one thats gonna be fixing it š¤£
@Amadeo
so presumably I would have to wait for the crash to happen again then get the log
it doesn't happen all that often
i think it was twice but I couldn't be bothered, so the log probably got overwritten
If you have any logs there should be a very large part of them that is stack traces which will help find the error spot
Ya, with debug logs enabled in the settings if possible š
it;s from today, it happened again
hm, nothing per se that would indicate the crash
is there anything in the event viewer (in system or application category) from that time?
sorry for not seeing the message. Where is this event viewer? is it on the HA server side? or on the windows machine
it's part of the windows - https://www.windowscentral.com/how-use-event-viewer-windows-10 (sorry for link to article rather than dedicated screenshots by my windows o this machine is not in English so it wouldn't be helpful :D)
Windows Central
How to use Event Viewer on Windows 10
If Windows 10 or an app isn't behaving as expected, you can use the Event Viewer to understand and troubleshoot the issue, and in this guide, we'll show you how.
is it here?
like, am I in the right timeframe?
think I narrowed it down
what is the error from 18:00 and warnings from 17:4X?
when you click at them there should be more details at the bottom od the window
the error^
the warnings
it seems like there's a bunch a services crashing, and not just hass agent
could it be from the overclocking?
I don't think so?
I'd excpect system to crash rather than one specific app
unless you experience more of the apps going awol randomly
yes that's what it looks like. I managed to get a quick peek at the systray icons when that glitch happens and I could just see each of them disappear and reappear there
so should I mark this as solved?
Just to be sure, more applications are randomly going awol? (Whilst you're playing with overclock)
yes, the entire systray section, basically all the apps running in background, I saw them one by one getting restarted at just that time
this only happened a couple times so it's not every day
and one time I just happened to be glancing at precisely that spot
so yeah, I would conclude that maybe it is not HASS Agent's fault, most likely
I just wanna have it restart when they do that
all the rest, they restart by themselves for some reason
I wanna set HASS agent to restart by itself when it does so, just need the process name, and event ID number for the trigger
hello
hey
https://b.chihi.ro/m5t6cj.png
you remind me of my collague from work that always writes "hello" but never what he actually wants š
well, I asked for the process name
it's in the title :p
oh
Solution
the process is called just "HASS.Agent"
but what kind of event id number are we talking about?
it is the number that windows expects, when I click new rule
like in the automation manager
whenever the selected program crashes, windows will restart it
but it wants an id for the trigger,
in task scheduler
I'm not sure what that would be, if there is something in the event viewer related to the HASS.Agent crashing then maybe that ID? I've never setup such a thing so it's hard to say, especially if the program may be crashing do to the system/overclock
yeah, I think it expects the event viewer event id
yeah darn it
I think this is a generic one for when an app crashes
that's what chatgpt says anyway
thank you for your help! I will tell you how it went after I observe it behaving.
should I tick this closed?
ā
let's leave it open for now, we assume the crashes may be from the overclock but I always like to leave some chance that there is something on our side š
very well. Yes, that is a healthy outlook