LAB02-Research / HASS.Agent

Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
https://hassagent.lab02-research.org
MIT License
1.5k stars 66 forks source link

Bug: Adding GPU Temperature Sensor will Brick Hass Agent #259

Open DataPlusProgram opened 1 year ago

DataPlusProgram commented 1 year ago

I have an issue where If I add the "GpuTemperature" sensor HASS agent will crash. It will continue to crash every time it's opened making it not possible to remove the sensor and making the program no longer usable.

This can be bypassed by removing the sensor manually from sensors.json.

My GPU is a Radeon 5700 XT running driver version 22.11.2 My CPU is Ryzen 7 5800X

DataPlusProgram commented 1 year ago

I have added the sensor while debugging and its provided the following information:

image

Note that this crash happens when pressing "Store & Activate Sensors" not on "Store Sensor" itself

It's also possible that the crash sometimes doesn't happen and add the sensor is added successfuly.

Jezza1232 commented 1 year ago

same here i was told to delete my sensor file and that should fix the issue but no everytime i put even 1 single sensor up or all after 1 to 2 days it will auto crash and will keep crashing after that. not a thing has helped and i dont "code" so dont have a clue, really starting to hate hass.agent because it never stays running at all, will also crash and force new windows install to fix after you update any driver of a device such as both my CPU and GPU's drivers updated 3 days ago and now keeps crashing after opening app or system reboot "start on windows" it will crash.

LAB02-Admin commented 1 year ago

Hi @Jezza1232, I'm sorry to hear that. I'll address this to both of you:

For GPU sensor values, I'm relying on LibreHardwareMonitor's library. So I can only support what LHM supports, and I can't debug every single GPU that doesn't work with LHM because that would be a fulltime job on itself.

The first year I hardly got any complaints from using LHM, but lately the number has been increasing, so I might need to switch away from it. For now, all I can recommend is using the standalone version of LHM or OpenHardwareMonitor or the likes, and use the WMI sensor to integrate their sensors:

https://hassagent.readthedocs.io/en/latest/wmi-examples/#fetch-gpu-temp-from-librehardwaremonitor

Jezza1232 commented 1 year ago

I would recommend the open hardware monitor to switch into home assistant I don't believe that LHM is working very well

On Thu, 26 Jan 2023, 7:09 pm LAB02 Research | Sam, @.***> wrote:

Hi @Jezza1232 https://github.com/Jezza1232, I'm sorry to hear that. I'll address this to both of you:

For GPU sensor values, I'm relying on LibreHardwareMonitor https://github.com/LibreHardwareMonitor/LibreHardwareMonitor's library. So I can only support what LHM supports, and I can't debug every single GPU that doesn't work with LHM because that would be a fulltime job on itself.

The first year I hardly got any complaints from using LHM, but lately the number has been increasing, so I might need to switch away from it. For now, all I can recommend is using the standalone version of LHM or OpenHardwareMonitor https://openhardwaremonitor.org or the likes, and use the WMI sensor to integrate their sensors:

https://hassagent.readthedocs.io/en/latest/wmi-examples/#fetch-gpu-temp-from-librehardwaremonitor

— Reply to this email directly, view it on GitHub https://github.com/LAB02-Research/HASS.Agent/issues/259#issuecomment-1404669120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXFHHS2EOPVWTLPFNLYQQCTWUIWKNANCNFSM6AAAAAAT4FVXT4 . You are receiving this because you were mentioned.Message ID: @.***>