Skip to content
New issue

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

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

Already on GitHub? # to your account

No notifications on Windows 11 #316

Open
psl2806 opened this issue Jun 8, 2023 · 2 comments
Open

No notifications on Windows 11 #316

psl2806 opened this issue Jun 8, 2023 · 2 comments

Comments

@psl2806
Copy link

psl2806 commented Jun 8, 2023

I'm not getting notifications on my Windows 11 client.

In homeassistant I noticed that the client is showing up under MQTT but not under the HASS.agent.

On the client log I can see this:

2023-06-08 13:00:30.493 +02:00 [INF] [HASS_API] Home Assistant version: 2023.6.0
2023-06-08 13:00:30.523 +02:00 [FTL] [PROGRAM] FirstChanceException: Cannot create a stable subkey under a volatile parent key.
System.IO.IOException: Cannot create a stable subkey under a volatile parent key.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternalCore(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat.Initialize()
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat..cctor()
2023-06-08 13:00:30.524 +02:00 [FTL] [NOTIFIER] Error while initializing: Failed initializing notifications
System.InvalidOperationException: Failed initializing notifications
---> System.IO.IOException: Cannot create a stable subkey under a volatile parent key.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternalCore(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat.Initialize()
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat..cctor()
--- End of inner exception stack trace ---
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat.CreateToastNotifier()
at HASS.Agent.Managers.NotificationManager.Initialize()

@Ar2rZ
Copy link

Ar2rZ commented Jun 9, 2023

same here, no notifications and no mediaplayer also.. sensors are seen and working..

@amadeo-alex
Copy link

It's good to use the templates when reporting bugs :)
Looks like this is less of a HASS.Agent bug but more of a Windows Community Toolkit issue: CommunityToolkit/WindowsCommunityToolkit#4858

There is a mention of Windows APP SDK as a potential fix for this but I've not yet checked it out.

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

No branches or pull requests

3 participants