Skip to content

Bug: Sensor for Active Virtual Desktop not working after Upgrade to 2.2.0 #419

@madface303

Description

@madface303

Please make sure that the issue you're planning to report is not already registered :)


Describe the bug
Since upgrading to the latest Version 2.2.0 my sensor in Home Assistant for the virtual desktop IDs do not work anymore. The attributes for DesktopName and availableDesktops are empty and the state too.

Expected behavior
Attributes should contain the IDs and state. Before upgrading this worked

Screenshots
Image
Image

Misc info (please complete the following information):

  • Windows build (ideally screenshot/info of winver.exe output): Win11 Pro 25H2
  • Windows' UI language: German
  • HASS.Agent version: 2.2.0

Please check what's applicable (multiple answers possible):

  • Installed via installer
  • Installed manually
  • Problem occurs in HASS.Agent
  • Problem occurs in Satellite Service

Additional context
Add any other context about the problem here.

Logs
Log has a lot of VIRTDESKT Errors. Here are a few of them:

2026-01-24 13:48:22.854 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:22.856 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:23.624 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:23.624 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:23.806 +01:00 [INF] [MQTT] Initial registration completed
2026-01-24 13:48:38.808 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:38.809 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:53.940 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:48:53.941 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:49:09.071 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:49:09.072 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:49:24.256 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning current desktop: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.
2026-01-24 13:49:24.258 +01:00 [ERR] [VIRTDESKT] Unhanded exception returning all desktops information: Could not load file or assembly 'WinRT.Runtime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Das System kann die angegebene Datei nicht finden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageMore information is required / ongoing investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions