HASS.Agent
HASS.Agent copied to clipboard
HASS.agent keeps crashing in windows
Hello,
I have downloaded HASS.agent and had it installed several months ago and it worked fine. Now everytime I try to launch the program, it freezes and crashes. I can't even access the logs because it crashes to quickly. Is there some sort of update that is making this happen? I am running Windows 11.
Any insight would be helpful.
same here
Yeah, I'm seeing the same:
Log:
2023-03-05 21:55:17.140 +00:00 [INF] [SETTINGS_SENSORS] Loaded 16 entities
2023-03-05 21:55:17.157 +00:00 [INF] [LOCALAPI] Disabled
2023-03-05 21:55:17.157 +00:00 [INF] [MQTT] Identifying as device: windows_machine
2023-03-05 21:55:17.164 +00:00 [INF] [MQTT] Connecting ..
2023-03-05 21:55:17.169 +00:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\LAB02 Research\HASS.Agent Satellite Service\
2023-03-05 21:55:17.208 +00:00 [INF] [MEDIA] Ready
2023-03-05 21:55:17.236 +00:00 [INF] [NOTIFIER] Ready
2023-03-05 21:55:17.270 +00:00 [INF] [HASS_API] Home Assistant version: 2023.3.1
2023-03-05 21:55:17.276 +00:00 [INF] [MQTT] Connected
2023-03-05 21:55:17.889 +00:00 [INF] [HASS_API] System connected with https://[home-assistant]/
2023-03-05 21:55:19.212 +00:00 [INF] [MQTT] Initial registration completed
appsettings.json
:
{
"OnboardingStatus": 9,
"DeviceName": "windows_machine",
"SanitizeName": true,
"InterfaceLanguage": "en",
"EnableStateNotifications": true,
"CheckForUpdates": true,
"LastUpdateNotificationShown": "",
"EnableExecuteUpdateInstaller": true,
"ShowBetaUpdates": false,
"DisconnectedGracePeriodSeconds": 60,
"ImageCacheRetentionDays": 7,
"AudioCacheRetentionDays": 7,
"WebViewCacheRetentionDays": 0,
"WebViewCacheLastCleared": "2023-03-05T19:56:57.0913522+00:00",
"TrayIconShowDefaultMenu": true,
"TrayIconShowWebView": false,
"TrayIconWebViewWidth": 700,
"TrayIconWebViewHeight": 560,
"TrayIconWebViewUrl": "http://homeassistant.local:8123",
"TrayIconWebViewBackgroundLoading": false,
"TrayIconWebViewShowMenuOnLeftClick": false,
"ServiceAuthId": "",
"BrowserName": "",
"BrowserBinary": "",
"BrowserIncognitoArg": "",
"CustomExecutorName": "",
"CustomExecutorBinary": "",
"LocalApiEnabled": false,
"LocalApiPort": 5115,
"NotificationsEnabled": true,
"NotificationsIgnoreImageCertificateErrors": false,
"MediaPlayerEnabled": true,
"HassUri": "https://[home-assistant]/",
"HassToken": "[jwt]",
"HassAutoClientCertificate": false,
"HassAllowUntrustedCertificates": true,
"HassClientCertificate": "",
"QuickActionsHotKeyEnabled": true,
"QuickActionsHotKey": "None",
"MqttEnabled": true,
"MqttAddress": "[home-assistant]",
"MqttPort": 8883,
"MqttUseTls": true,
"MqttAllowUntrustedCertificates": true,
"MqttUsername": "[username]",
"MqttPassword": "[password]",
"MqttDiscoveryPrefix": "homeassistant",
"MqttClientId": "7a0ccf55",
"MqttUseRetainFlag": true,
"MqttRootCertificate": "",
"MqttClientCertificate": ""
}
sensors.json
:
[
{
"Type": "ActiveWindowSensor",
"Id": "67d26550-3b6b-4611-aad7-dd0e24ceef84",
"UpdateInterval": 15,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_activewindow"
},
{
"Type": "BluetoothDevicesSensor",
"Id": "7c6fb321-179b-4fd1-9815-356042c47d8b",
"UpdateInterval": 30,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_bluetoothdevices"
},
{
"Type": "BluetoothLeDevicesSensor",
"Id": "d3da8979-aae9-4ff4-9026-a61141c89d8d",
"UpdateInterval": 30,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_bluetoothledevices"
},
{
"Type": "CpuLoadSensor",
"Id": "e81187ee-1415-4e24-b9f2-821c54197981",
"UpdateInterval": 30,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "Processor",
"Counter": "% Processor Time",
"Instance": "_Total",
"Name": "windows_machine_cpuload"
},
{
"Type": "CurrentClockSpeedSensor",
"Id": "c9556a1d-a26f-412c-9175-02b69f9e2e37",
"UpdateInterval": 300,
"Query": "",
"Scope": "",
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_currentclockspeed"
},
{
"Type": "CurrentVolumeSensor",
"Id": "dce2ceca-d7e6-40e9-ae2b-824fb4c4ea84",
"UpdateInterval": 15,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_currentvolume"
},
{
"Type": "GpuLoadSensor",
"Id": "5625027f-fce6-4570-803b-fe9117149970",
"UpdateInterval": 30,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_gpuload"
},
{
"Type": "GpuTemperatureSensor",
"Id": "a4f0c73b-9285-43fa-84c1-71193f8c9d56",
"UpdateInterval": 30,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_gputemperature"
},
{
"Type": "LastBootSensor",
"Id": "6c571ccc-142b-475e-905a-b325899fb1bd",
"UpdateInterval": 10,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_lastboot"
},
{
"Type": "LastSystemStateChangeSensor",
"Id": "cdfdc068-ab66-49d7-bf60-e0b30d642337",
"UpdateInterval": 10,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_lastsystemstatechange"
},
{
"Type": "UserNotificationStateSensor",
"Id": "de7b8a9e-449b-4a96-ad96-53375de3e316",
"UpdateInterval": 10,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_usernotification"
},
{
"Type": "WebcamActiveSensor",
"Id": "393f06ff-b0d6-482b-bbee-f81867dcc83d",
"UpdateInterval": 10,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_webcamactive"
},
{
"Type": "MemoryUsageSensor",
"Id": "7dfaf2fa-641b-41d9-8bcb-b9c7f5fe6095",
"UpdateInterval": 30,
"Query": "SELECT FreePhysicalMemory,TotalVisibleMemorySize FROM Win32_OperatingSystem",
"Scope": "",
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_memoryusage"
},
{
"Type": "AudioSensors",
"Id": "9cd9e30f-a83d-41ec-a246-135a1b91cbc4",
"UpdateInterval": 20,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_audio"
},
{
"Type": "DisplaySensors",
"Id": "831e45cd-d3d8-4485-9f5f-5d31e557d690",
"UpdateInterval": 15,
"Query": "",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_display"
},
{
"Type": "NetworkSensors",
"Id": "8356dec7-8d1d-4194-8cff-5bc09ed61d0d",
"UpdateInterval": 30,
"Query": "*",
"Scope": null,
"WindowName": "",
"Category": "",
"Counter": "",
"Instance": "",
"Name": "windows_machine_network"
}
]
Windows version: Windows 11 22H2 (Build 22621.1105)
same here, tried installing fresh but even then it crashes without having the chance to configure anything.
same issue here. Running it on windows 10
These are the logs for my HASS.agent on Windows 11. There is nothing about an error or why it keeps crashing. Anyone have any solutions?
2023-06-06 11:11:10.818 -04:00 [INF] [MAIN] HASS.Agent version: 2022.14.0
2023-06-06 11:11:10.822 -04:00 [INF] [SETTINGS] Config storage path: D:\HASS.agent\config
2023-06-06 11:11:10.824 -04:00 [INF] [SETTINGS] No config found, storing default settings
2023-06-06 11:11:10.891 -04:00 [INF] [LOCALIZTION] No language setting stored, falling back to the system's UI culture: English (United States)
2023-06-06 11:11:10.891 -04:00 [WRN] [LOCALIZATION] The selected UI culture isn't yet supported, please help out by translating:
2023-06-06 11:11:10.891 -04:00 [WRN] [LOCALIZATION] https://hassagent.readthedocs.io/en/latest/translating/
2023-06-06 11:11:10.891 -04:00 [INF] [LOCALIZATION] Setting default: English
2023-06-06 11:11:11.069 -04:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2023-06-06 11:11:11.070 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2023-06-06 11:11:11.072 -04:00 [INF] [SETTINGS_SENSORS] Config not found, no entities loaded
2023-06-06 11:13:34.765 -04:00 [INF] [SETTINGS] Configuration stored
2023-06-06 11:13:34.818 -04:00 [INF] [LOCALAPI] Disabled
2023-06-06 11:13:34.819 -04:00 [INF] [MQTT] Identifying as device: DESKTOP
2023-06-06 11:13:34.819 -04:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\LAB02 Research\HASS.Agent Satellite Service
2023-06-06 11:13:34.822 -04:00 [INF] [SETTINGS] Configuration stored
2023-06-06 11:13:34.824 -04:00 [INF] [MQTT] Connecting ..
2023-06-06 11:13:34.855 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2023-06-06 11:13:34.879 -04:00 [INF] [MQTT] Connected
2023-06-06 11:13:34.910 -04:00 [INF] [MEDIA] Ready
2023-06-06 11:13:34.940 -04:00 [INF] [NOTIFIER] Ready
2023-06-06 11:13:35.357 -04:00 [INF] [SYSTEM] Application shutting down
2023-06-06 11:13:35.366 -04:00 [INF] [MQTT] Disconnected
2023-06-06 11:13:35.371 -04:00 [INF] [SYSTEM] Application shutdown complete
2023-06-06 11:13:37.204 -04:00 [INF] [MAIN] HASS.Agent version: 2022.14.0
2023-06-06 11:13:37.209 -04:00 [INF] [SETTINGS] Config storage path: D:\HASS.agent\config
2023-06-06 11:13:37.293 -04:00 [INF] [SETTINGS] Configuration loaded
2023-06-06 11:13:37.296 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2023-06-06 11:13:37.441 -04:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2023-06-06 11:13:37.443 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2023-06-06 11:13:37.444 -04:00 [INF] [SETTINGS_SENSORS] Config not found, no entities loaded
2023-06-06 11:13:37.448 -04:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\LAB02 Research\HASS.Agent Satellite Service
2023-06-06 11:13:37.448 -04:00 [INF] [MQTT] Identifying as device: DESKTOP
2023-06-06 11:13:37.448 -04:00 [INF] [LOCALAPI] Disabled
2023-06-06 11:13:37.450 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2023-06-06 11:13:37.452 -04:00 [INF] [MQTT] Connecting ..
2023-06-06 11:13:37.481 -04:00 [INF] [MQTT] Connected
2023-06-06 11:13:37.497 -04:00 [INF] [HASS_API] Home Assistant version: 2023.5.4
2023-06-06 11:13:37.516 -04:00 [INF] [NOTIFIER] Ready
2023-06-06 11:13:37.529 -04:00 [INF] [MEDIA] Ready
2023-06-06 11:13:37.662 -04:00 [INF] [HASS_API] System connected with http://192.168.99.xx:8123
2023-06-06 11:13:39.463 -04:00 [INF] [MQTT] Initial registration completed
2023-06-06 11:14:11.768 -04:00 [INF] [MQTT] Connected
2023-06-06 11:18:03.789 -04:00 [INF] [SENSORS] Added single-value sensor: DESKTOP-_activewindow
2023-06-06 11:18:08.155 -04:00 [INF] [SENSORS] Added single-value sensor: DESKTOP-_cpuload
2023-06-06 11:18:10.486 -04:00 [INF] [SENSORS] Added single-value sensor: DESKTOP-_gpuload
2023-06-06 11:18:10.499 -04:00 [INF] [SETTINGS_SENSORS] Stored 3 entities
2023-06-06 15:01:16.578 -04:00 [INF] [MAIN] HASS.Agent version: 2022.14.0
2023-06-06 15:01:16.582 -04:00 [INF] [SETTINGS] Config storage path: D:\HASS.agent\config
2023-06-06 15:01:16.670 -04:00 [INF] [SETTINGS] Configuration loaded
2023-06-06 15:01:16.673 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2023-06-06 15:01:16.837 -04:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2023-06-06 15:01:16.839 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2023-06-06 15:01:19.371 -04:00 [INF] [SETTINGS_SENSORS] Loaded 3 entities
2023-06-06 15:01:19.375 -04:00 [INF] [LOCALAPI] Disabled
2023-06-06 15:01:19.375 -04:00 [INF] [MQTT] Identifying as device: DESKTOP
2023-06-06 15:01:19.375 -04:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\LAB02 Research\HASS.Agent Satellite Service
2023-06-06 15:01:19.377 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2023-06-06 15:01:19.380 -04:00 [INF] [MQTT] Connecting ..
2023-06-06 15:01:19.418 -04:00 [INF] [MQTT] Connected
2023-06-06 15:01:19.431 -04:00 [INF] [HASS_API] Home Assistant version: 2023.5.4
2023-06-06 15:01:19.443 -04:00 [INF] [NOTIFIER] Ready
2023-06-06 15:01:19.460 -04:00 [INF] [MEDIA] Ready
2023-06-06 15:01:19.617 -04:00 [INF] [HASS_API] System connected with http://192.168.99.xx:8123
i had it just removed some senors in the json and it was fine. couldnt nail it down to a single sensor though
I have the same issue
Seems to be the AMD GPU -- https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/issues/736
If you remove the GPU sensors, things seem to be okay 👀