MarcoMadnesss
Explore posts from serversHHASS.Agent
•Created by MarcoMadnesss on 9/30/2024 in #💬・get-help
Is there any way to change the shutdown wait period?
I feel like 1 minute is a bit long. RPC shutdown can configure the delay time.
3 replies
HHASS.Agent
•Created by MarcoMadnesss on 5/10/2024 in #💬・get-help
Is it possible to run Powershell commands with a variable made in Node-Red/Home Assistant?
I have a input_select that has options for filenames. Is it possible to have that filename be sent into a message payload and have HASS agent receive it and launch a powershell process with the matching file on the computer?
6 replies
HHASS.Agent
•Created by MarcoMadnesss on 5/5/2024 in #💬・get-help
Specified cast is not valid?
Just updated my hass agent to v2 and while I have start with windows toggled, it starts up and closes immediately. I looked at the logs and found this error below. I don't use Virtual Desktops, so how do I disable that? I'm running Windows 11.
2024-05-05 12:44:04.152 -07:00 [FTL] [PROGRAM] FirstChanceException: Specified cast is not valid.
System.InvalidCastException: Specified cast is not valid.
at WindowsDesktop.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid)
at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(Type type, Nullable
1 guidService)
at WindowsDesktop.Interop.ComInterfaceAssembly.CreateInstance(String comInterfaceName, Guid clsid)
at WindowsDesktop.Interop.ComWrapperBase
1..ctor(ComInterfaceAssembly assembly, Guid clsid)
at WindowsDesktop.Interop.Build22621.VirtualDesktopManagerInternal..ctor(ComInterfaceAssembly assembly, ComWrapperFactory factory)
at WindowsDesktop.Interop.Build22621.VirtualDesktopProvider22621.InitializeCore(ComInterfaceAssembly assembly)
at WindowsDesktop.Interop.VirtualDesktopProvider.Initialize(ComInterfaceAssembly assembly)
at WindowsDesktop.VirtualDesktop.InitializeCore()
at WindowsDesktop.VirtualDesktop.InitializeIfNeeded()
at WindowsDesktop.VirtualDesktop.Configure()
at HASS.Agent.Managers.VirtualDesktopManager.Initialize() in D:\a\HASS.Agent\HASS.Agent\src\HASS.Agent\HASS.Agent\Managers\VirtualDesktopManager.cs:line 24
2024-05-05 12:44:04.152 -07:00 [ERR] [VIRTDESKT] Error initializing Virtual Desktop Manager, your Windows version may be unsupported9 replies