Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Notifications Fail #203

Open
jtst1 opened this issue Dec 21, 2024 · 6 comments
Open

Issue: Notifications Fail #203

jtst1 opened this issue Dec 21, 2024 · 6 comments

Comments

@jtst1
Copy link

jtst1 commented Dec 21, 2024

Not sure if this is the right place for this, but I cannot get notifications to work with the HASS Agent, even the local test one in the settings. When I look at the logs this is what I get

2024-12-21 17:18:24.164 -05:00 [INF] [NOTIFIER] Attempting to show test notification ..
2024-12-21 17:18:24.181 -05:00 [INF] [NOTIFIER] Test notification attempt completed
2024-12-21 17:18:24.300 -05:00 [ERR] [NOTIFIER] Notification 'HASS.Agent' failed to show

Notifications are turned on in windows settings for HASS Agent, do not disturb is turned off, focus session not turned on, other applications can send notifications fine. If this is the wrong place to ask for help please let me know where I should. Thanks.

@amadeo-alex amadeo-alex transferred this issue from hass-agent/HASS.Agent-Integration Dec 22, 2024
@amadeo-alex amadeo-alex changed the title Notifications Fail Issue: Notifications Fail Dec 22, 2024
@amadeo-alex
Copy link
Collaborator

Moved to HASS.Agent repo as the test one fails.
Could you please enable debug logging, restart HASS.Agent try to show the test notification and then post the logs?

@jtst1
Copy link
Author

jtst1 commented Dec 24, 2024

2024-12-24 16:53:58.861 -05:00 [INF] [MAIN] HASS.Agent version: 2.1.0
2024-12-24 16:53:58.867 -05:00 [INF] [SETTINGS] Config storage path: C:\Users\Jtst1\AppData\Local\HASS.Agent\Client\config
2024-12-24 16:53:58.947 -05:00 [INF] [SETTINGS] Configuration loaded
2024-12-24 16:53:58.950 -05:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2024-12-24 16:53:59.364 -05:00 [INF] [RADIOMGR] Radio management permission granted
2024-12-24 16:53:59.381 -05:00 [INF] [RADIOMGR] Ready
2024-12-24 16:54:01.408 -05:00 [INF] [INTERNALSENSORS] Ready
2024-12-24 16:54:02.093 -05:00 [INF] [VIRTDESKT] Virtual Desktop Manager initialized
2024-12-24 16:54:02.356 -05:00 [INF] [AUDIOMGR] initialized
2024-12-24 16:54:02.366 -05:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2024-12-24 16:54:02.393 -05:00 [INF] [SETTINGS_COMMANDS] Loaded 2 entities
2024-12-24 16:54:02.460 -05:00 [INF] [SETTINGS_SENSORS] Loaded 1 entities
2024-12-24 16:54:02.467 -05:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2024-12-24 16:54:02.513 -05:00 [INF] [LOCALAPI] Initializing ..
2024-12-24 16:54:02.513 -05:00 [INF] [LOCALAPI] Ignoring certificate errors for images
2024-12-24 16:54:02.599 -05:00 [INF] [MQTT] Identifying as device: Desktop
2024-12-24 16:54:02.607 -05:00 [INF] [MQTT] Connecting ..
2024-12-24 16:54:02.718 -05:00 [INF] [HASS_API] Home Assistant version: 2024.12.5
2024-12-24 16:54:02.860 -05:00 [INF] [HASS_API] System connected with http://hassio:8123
2024-12-24 16:54:03.260 -05:00 [INF] [SERVICE] Local install path: C:\Program Files\HASS.Agent Satellite Service\Service
2024-12-24 16:54:03.265 -05:00 [WRN] [NOTIFIER] Showing notifications might fail, reason: Unsupported
2024-12-24 16:54:03.269 -05:00 [INF] [NOTIFIER] Ready
2024-12-24 16:54:03.296 -05:00 [INF] [MEDIA] Ready
2024-12-24 16:54:03.333 -05:00 [INF] [LOCALAPI] listening on port 5115
2024-12-24 16:54:03.690 -05:00 [INF] [MQTT] Connected
2024-12-24 16:54:05.257 -05:00 [INF] [MQTT] Initial registration completed
2024-12-24 16:54:07.751 -05:00 [INF] [SETTINGS] Configuration stored
2024-12-24 16:54:09.759 -05:00 [INF] [SYSTEM] Application shutting down
2024-12-24 16:54:09.764 -05:00 [INF] [MQTT] Disconnected
2024-12-24 16:54:09.775 -05:00 [INF] [SYSTEM] Application shutdown complete
2024-12-24 16:54:11.694 -05:00 [INF] [MAIN] HASS.Agent version: 2.1.0
2024-12-24 16:54:11.697 -05:00 [INF] [MAIN] Extended logging enabled
2024-12-24 16:54:11.701 -05:00 [INF] [SETTINGS] Config storage path: C:\Users\Jtst1\AppData\Local\HASS.Agent\Client\config
2024-12-24 16:54:11.784 -05:00 [INF] [SETTINGS] Configuration loaded
2024-12-24 16:54:11.787 -05:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2024-12-24 16:54:11.938 -05:00 [DBG] [RADIOMGR] Initialization started
2024-12-24 16:54:11.983 -05:00 [INF] [RADIOMGR] Radio management permission granted
2024-12-24 16:54:11.983 -05:00 [DBG] [RADIOMGR] Enumerating proximity/NFC devices
2024-12-24 16:54:11.994 -05:00 [INF] [RADIOMGR] Ready
2024-12-24 16:54:14.035 -05:00 [INF] [INTERNALSENSORS] Ready
2024-12-24 16:54:14.574 -05:00 [INF] [VIRTDESKT] Virtual Desktop Manager initialized
2024-12-24 16:54:14.574 -05:00 [DBG] [AUDIOMGR] initializing
2024-12-24 16:54:14.799 -05:00 [INF] [AUDIOMGR] initialized
2024-12-24 16:54:14.808 -05:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2024-12-24 16:54:14.828 -05:00 [INF] [SETTINGS_COMMANDS] Loaded 2 entities
2024-12-24 16:54:14.889 -05:00 [INF] [SETTINGS_SENSORS] Loaded 1 entities
2024-12-24 16:54:14.894 -05:00 [INF] [LOCALAPI] Initializing ..
2024-12-24 16:54:14.894 -05:00 [INF] [LOCALAPI] Ignoring certificate errors for images
2024-12-24 16:54:14.894 -05:00 [INF] [MQTT] Identifying as device: Desktop
2024-12-24 16:54:14.896 -05:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2024-12-24 16:54:14.900 -05:00 [INF] [MQTT] Connecting ..
2024-12-24 16:54:14.907 -05:00 [INF] [SERVICE] Local install path: C:\Program Files\HASS.Agent Satellite Service\Service
2024-12-24 16:54:14.911 -05:00 [WRN] [NOTIFIER] Showing notifications might fail, reason: Unsupported
2024-12-24 16:54:14.914 -05:00 [INF] [NOTIFIER] Ready
2024-12-24 16:54:14.937 -05:00 [INF] [MEDIA] Ready
2024-12-24 16:54:14.945 -05:00 [WRN] [MEDIA] No MediaSession active
2024-12-24 16:54:14.952 -05:00 [INF] [MQTT] Connected
2024-12-24 16:54:14.953 -05:00 [INF] [HASS_API] Home Assistant version: 2024.12.5
2024-12-24 16:54:15.089 -05:00 [INF] [HASS_API] System connected with http://hassio:8123
2024-12-24 16:54:15.143 -05:00 [INF] [LOCALAPI] listening on port 5115
2024-12-24 16:54:16.919 -05:00 [INF] [MQTT] Initial registration completed
2024-12-24 16:54:21.113 -05:00 [INF] [NOTIFIER] Attempting to show test notification ..
2024-12-24 16:54:21.126 -05:00 [INF] [NOTIFIER] Test notification attempt completed
2024-12-24 16:54:21.242 -05:00 [ERR] [NOTIFIER] Notification 'HASS.Agent' failed to show

@amadeo-alex
Copy link
Collaborator

2024-12-24 16:54:14.911 -05:00 [WRN] [NOTIFIER] Showing notifications might fail, reason: Unsupported

What version of window you're using?

@jtst1
Copy link
Author

jtst1 commented Dec 25, 2024

Windows 11 Version 23H2 Build 22631.4602

@amadeo-alex
Copy link
Collaborator

I did some research and I'll be honest I'm running out of ideas. The only one left if for me to get build 22631.4602 iso somehow and test it live.
There is a slight chance that updating the WindowsAppSdk would solve it but then again, you've mentioned that other apps properly send notifications. I'll create a test build just to be sure and update here.

@amadeo-alex
Copy link
Collaborator

https://github.com/amadeo-alex/HASS.Agent/releases/tag/2.1.1-beta3-test-sdkupdate
I don't have high hopes of this being the fix but it's worth a try.
Please make backup of the configuration before trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants