GamerClassN7 / HA_Desktop_Companion

App which is using native HA Api to comunicate and report data to HA
52 stars 5 forks source link

Websocket not connected, everything else works #75

Closed Hellis81 closed 6 months ago

Hellis81 commented 6 months ago

Hi

I get these messages today:

image

So every time I press the save button, it connects then a few seconds later I get disconnected.

I have tried to restart my HA instance and that didn't help I can't see anything in the logs that is suspicious.

When I use the notify service I get this message: image

Right clicking on the icon and doing a "Send test notification" works.

Hellis81 commented 6 months ago

I closed the Companion app and opened it again and now it works again. I did try that earlier also, but this time it seems it did some magic...

Hellis81 commented 6 months ago

The issue is back. It seems with the latest version it disconnects from only API sometimes, sometimes only websocket, and sometimes it disconnects from both. The only way I have found to get it to work again is to open the activity manager and close the app

GamerClassN7 commented 6 months ago

Hi, @Hellis81 Can you post your log file and configuration.yaml ? i am running on 4 machines and i did not noticed any problem.

I also trying to rewrite whole app and it is way faster and way better :)

if you are able to run VisualStudio you can try to build and run new version from source :) https://github.com/GamerClassN7/HA_Desktop_Companion/tree/reborn

What you mean by "Activity Manager" you mean Task Manager ?

GamerClassN7 commented 6 months ago

@Hellis81 could you please post required files ? :)

Hellis81 commented 6 months ago

Sorry, have been having a busy weekend.

[05-13-2024-07:02:10][0]Initialization
[05-13-2024-07:02:10][4]Starting APP
[05-13-2024-07:02:12][4]API initiualized
[05-13-2024-07:02:45][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
[05-13-2024-07:02:45][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:45][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:45][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
[05-13-2024-07:02:45][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:45][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:45][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:45][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:46][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:46][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:46][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:46][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-13-2024-07:02:46][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[05-13-2024-07:02:46][3][HA]System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.)
 ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[05-13-2024-07:02:46][4]Get HA version Failed!
[05-13-2024-07:02:46][4]One or more errors occurred. (The SSL connection could not be established, see inner exception.)
[05-13-2024-07:02:50][0]Autostart Failed
[05-13-2024-07:24:05][1]settings saved
[05-13-2024-07:24:05][1]Autostart
[05-13-2024-07:24:05][1]Stoping Instances
[05-13-2024-07:24:05][4]Starting APP
[05-13-2024-07:24:06][4]API initiualized
[05-13-2024-07:24:08][0]API RESPONSE CODE <200> OK
[05-13-2024-07:24:09][0]HA server Version2024.4.0
[05-13-2024-07:24:09][4]Register Device!
[05-13-2024-07:24:11][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:11][0]SELECT Manufacturer FROM Win32_ComputerSystem[0]
[05-13-2024-07:24:11][0]ITERATOR 0
[05-13-2024-07:24:13][0]OUTPUT: LENOVO
[05-13-2024-07:24:13][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:13][0]SELECT Model FROM Win32_ComputerSystem[0]
[05-13-2024-07:24:13][0]ITERATOR 0
[05-13-2024-07:24:13][0]OUTPUT: 20JH003EMX
[05-13-2024-07:24:13][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:13][0]SELECT Caption FROM Win32_OperatingSystem[0]
[05-13-2024-07:24:13][0]ITERATOR 0
[05-13-2024-07:24:13][0]OUTPUT: Microsoft Windows 10 Enterprise
[05-13-2024-07:24:13][0]HA.Class.HomeAssistant.Objects.HomeAssistatnDevice
[05-13-2024-07:24:14][0]{
  "device_id": "debug_axlt2801",
  "app_id": "0.0.13.0",
  "app_name": "HA",
  "app_version": "0.0.13.0",
  "device_name": "DEBUG_AXLT2801",
  "manufacturer": "LENOVO",
  "model": "20JH003EMX",
  "os_name": "Microsoft Windows 10 Enterprise",
  "os_version": "Microsoft Windows NT 10.0.19045.0",
  "supports_encryption": false,
  "app_data": {
    "push_websocket_channel": true
  }
}
[05-13-2024-07:24:15][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:16][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:tape-drive",
    "name": "C Free Disk space",
    "type": "sensor",
    "unique_id": "disk_0_space",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:17][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:17][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "battery",
    "icon": "mdi:battery",
    "name": "Battery Level",
    "type": "sensor",
    "unique_id": "battery_level",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:17][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:17][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:battery-minus",
    "name": "Battery State",
    "type": "sensor",
    "unique_id": "battery_state",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:17][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:17][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:clock",
    "name": "Free Ram",
    "type": "sensor",
    "unique_id": "free_ram",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:17][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:17][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:cpu-64-bit",
    "name": "CPU Usage",
    "type": "sensor",
    "unique_id": "cpu_usage",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:18][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:18][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:tape-drive",
    "name": "C Free Disk space",
    "type": "sensor",
    "unique_id": "disk_0_space",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:18][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:18][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "battery",
    "icon": "mdi:battery",
    "name": "Battery Level",
    "type": "sensor",
    "unique_id": "battery_level",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:18][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:19][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:battery-minus",
    "name": "Battery State",
    "type": "sensor",
    "unique_id": "battery_state",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:19][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:19][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:clock",
    "name": "Free Ram",
    "type": "sensor",
    "unique_id": "free_ram",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:19][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:19][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:cpu-64-bit",
    "name": "CPU Usage",
    "type": "sensor",
    "unique_id": "cpu_usage",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:19][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:19][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:tape-drive",
    "name": "C Free Disk space",
    "type": "sensor",
    "unique_id": "disk_0_space",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:19][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:20][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "battery",
    "icon": "mdi:battery",
    "name": "Battery Level",
    "type": "sensor",
    "unique_id": "battery_level",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:20][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:20][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:battery-minus",
    "name": "Battery State",
    "type": "sensor",
    "unique_id": "battery_state",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:20][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:20][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:clock",
    "name": "Free Ram",
    "type": "sensor",
    "unique_id": "free_ram",
    "unit_of_measurement": "GB",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:20][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:20][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:cpu-64-bit",
    "name": "CPU Usage",
    "type": "sensor",
    "unique_id": "cpu_usage",
    "unit_of_measurement": "%",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:21][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:21][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi State",
    "type": "sensor",
    "unique_id": "wifi_state"
  }
}
[05-13-2024-07:24:21][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:21][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi SSID",
    "type": "sensor",
    "unique_id": "wifi_ssid"
  }
}
[05-13-2024-07:24:21][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:21][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi State",
    "type": "sensor",
    "unique_id": "wifi_state"
  }
}
[05-13-2024-07:24:21][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:21][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi SSID",
    "type": "sensor",
    "unique_id": "wifi_ssid"
  }
}
[05-13-2024-07:24:22][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:22][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi State",
    "type": "sensor",
    "unique_id": "wifi_state"
  }
}
[05-13-2024-07:24:22][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:22][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:wifi",
    "name": "Wifi SSID",
    "type": "sensor",
    "unique_id": "wifi_ssid"
  }
}
[05-13-2024-07:24:22][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:22][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:application",
    "name": "Currently Active Window",
    "type": "sensor",
    "unique_id": "currently_active_window"
  }
}
[05-13-2024-07:24:22][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:22][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:application",
    "name": "Currently Active Window",
    "type": "sensor",
    "unique_id": "currently_active_window"
  }
}
[05-13-2024-07:24:23][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:23][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:application",
    "name": "Currently Active Window",
    "type": "sensor",
    "unique_id": "currently_active_window"
  }
}
[05-13-2024-07:24:23][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:23][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:timer-outline",
    "name": "Uptime",
    "type": "sensor",
    "unique_id": "uptime",
    "unit_of_measurement": "h",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:23][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:23][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:timer-outline",
    "name": "Uptime",
    "type": "sensor",
    "unique_id": "uptime",
    "unit_of_measurement": "h",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:23][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:23][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:timer-outline",
    "name": "Uptime",
    "type": "sensor",
    "unique_id": "uptime",
    "unit_of_measurement": "h",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:24][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:24][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:camera",
    "name": "Camera in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "camera_in_use"
  }
}
[05-13-2024-07:24:24][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:24][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:microphone",
    "name": "Microphone in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "microphone_in_use"
  }
}
[05-13-2024-07:24:24][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:24][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:crosshairs-gps",
    "name": "Location in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "location_in_use"
  }
}
[05-13-2024-07:24:24][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:25][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:camera",
    "name": "Camera in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "camera_in_use"
  }
}
[05-13-2024-07:24:25][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:25][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:microphone",
    "name": "Microphone in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "microphone_in_use"
  }
}
[05-13-2024-07:24:26][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:26][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:crosshairs-gps",
    "name": "Location in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "location_in_use"
  }
}
[05-13-2024-07:24:26][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:26][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:camera",
    "name": "Camera in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "camera_in_use"
  }
}
[05-13-2024-07:24:26][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:26][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:microphone",
    "name": "Microphone in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "microphone_in_use"
  }
}
[05-13-2024-07:24:27][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:27][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:crosshairs-gps",
    "name": "Location in use",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "location_in_use"
  }
}
[05-13-2024-07:24:27][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:27][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "plug",
    "icon": "mdi:power-plug-off",
    "name": "Is Charging",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "is_charging"
  }
}
[05-13-2024-07:24:27][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:27][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "plug",
    "icon": "mdi:power-plug-off",
    "name": "Is Charging",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "is_charging"
  }
}
[05-13-2024-07:24:28][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:28][0]{
  "type": "register_sensor",
  "data": {
    "device_class": "plug",
    "icon": "mdi:power-plug-off",
    "name": "Is Charging",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "is_charging"
  }
}
[05-13-2024-07:24:28][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:28][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:restart",
    "name": "Restart required",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "restart_pending",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:29][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:29][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:restart",
    "name": "Restart required",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "restart_pending",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:29][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:29][0]{
  "type": "register_sensor",
  "data": {
    "icon": "mdi:restart",
    "name": "Restart required",
    "state": false,
    "type": "binary_sensor",
    "unique_id": "restart_pending",
    "entity_category": "diagnostic"
  }
}
[05-13-2024-07:24:29][0]API RESPONSE CODE <201> Created
[05-13-2024-07:24:29][0]Periodic Timer Start!
[05-13-2024-07:24:29][0]WS INITIALIZATION
[05-13-2024-07:24:30][0]RECIEVE
[05-13-2024-07:24:30][0]{"type":"auth_required","ha_version":"2024.4.0"}
[05-13-2024-07:24:30][0]SEND
[05-13-2024-07:24:30][0]{
  "type": "auth",
  "access_token": "***SECRET****"
}
[05-13-2024-07:24:30][0]SEND/RECIEVING
[05-13-2024-07:24:30][0]RECIEVE
[05-13-2024-07:24:30][0]{"type":"auth_ok","ha_version":"2024.4.0"}
[05-13-2024-07:24:30][0]WS Auth OK
[05-13-2024-07:24:30][0]SEND
[05-13-2024-07:24:30][0]{
  "id": 2,
  "type": "mobile_app/push_notification_channel",
  "webhook_id": "8c2caf71313cd1313f12a27977b065b88758739308e71977cffc6b9e20479f7c",
  "support_confirm": false
}
[05-13-2024-07:24:30][0]SEND/RECIEVING
[05-13-2024-07:24:30][0]RECIEVE
[05-13-2024-07:24:30][0]{"id":2,"type":"result","success":true,"result":null}
[05-13-2024-07:24:30][0]WS subscription OK
[05-13-2024-07:24:30][0]Initializing Ping
[05-13-2024-07:24:30][0]WS RECEEVE LOOP STARTED
[05-13-2024-07:24:34][3][HA]System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.Toolkit.Uwp.Notifications.IApplicationResolver.GetBestShortcutForAppID(String pszAppID, IShellItem& ppsi)
   at Microsoft.Toolkit.Uwp.Notifications.Win32AppInfo.Get()
[05-13-2024-07:24:35][0]App minimalized
[05-13-2024-07:24:36][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:36][0]SELECT FreeSpace FROM Win32_LogicalDisk[0]
[05-13-2024-07:24:36][0]ITERATOR 0
[05-13-2024-07:24:36][0]OUTPUT: 35056381952
[05-13-2024-07:24:36][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:36][0]SELECT EstimatedChargeRemaining FROM Win32_Battery[0]
[05-13-2024-07:24:36][0]ITERATOR 0
[05-13-2024-07:24:36][0]OUTPUT: 35
[05-13-2024-07:24:36][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:36][0]SELECT BatteryStatus FROM Win32_Battery[0]
[05-13-2024-07:24:36][0]ITERATOR 0
[05-13-2024-07:24:36][0]OUTPUT: 2
[05-13-2024-07:24:36][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:36][0]SELECT FreePhysicalMemory FROM Win32_OperatingSystem[0]
[05-13-2024-07:24:36][0]ITERATOR 0
[05-13-2024-07:24:36][0]OUTPUT: 369992
[05-13-2024-07:24:36][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:36][0]SELECT LoadPercentage FROM Win32_Processor[0]
[05-13-2024-07:24:36][0]ITERATOR 0
[05-13-2024-07:24:37][0]OUTPUT: 63
[05-13-2024-07:24:43][0]NAMESPACE root\wmi
[05-13-2024-07:24:43][0]SELECT PowerOnline FROM BatteryStatus[0]
[05-13-2024-07:24:43][0]ITERATOR 0
[05-13-2024-07:24:43][0]OUTPUT: True
[05-13-2024-07:24:43][0]all task query Done!
[05-13-2024-07:24:43][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:43][0]Filtered Value battery_level - 35
[05-13-2024-07:24:43][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:43][0]Filtered Value free_ram - 0,4
[05-13-2024-07:24:43][0]Filtered Value cpu_usage - 63
[05-13-2024-07:24:43][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:43][0]Filtered Value battery_level - 35
[05-13-2024-07:24:43][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:43][0]Filtered Value free_ram - 0,4
[05-13-2024-07:24:43][0]Filtered Value cpu_usage - 63
[05-13-2024-07:24:43][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:43][0]Filtered Value battery_level - 35
[05-13-2024-07:24:43][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:43][0]Filtered Value free_ram - 0,4
[05-13-2024-07:24:43][0]Filtered Value cpu_usage - 63
[05-13-2024-07:24:43][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:43][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:43][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:43][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:43][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:43][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:43][0]Filtered Value currently_active_window - 05_13_2024_log.log - Anteckningar
[05-13-2024-07:24:43][0]Filtered Value currently_active_window - 05_13_2024_log.log - Anteckningar
[05-13-2024-07:24:43][0]Filtered Value currently_active_window - 05_13_2024_log.log - Anteckningar
[05-13-2024-07:24:43][0]Filtered Value uptime - 666
[05-13-2024-07:24:43][0]Filtered Value uptime - 666
[05-13-2024-07:24:43][0]Filtered Value uptime - 666
[05-13-2024-07:24:43][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:43][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:43][0]Filtered Value location_in_use - False
[05-13-2024-07:24:43][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:43][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:43][0]Filtered Value location_in_use - False
[05-13-2024-07:24:43][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:43][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:43][0]Filtered Value location_in_use - False
[05-13-2024-07:24:43][0]Filtered Value is_charging - True
[05-13-2024-07:24:43][0]Filtered Value is_charging - True
[05-13-2024-07:24:43][0]Filtered Value is_charging - True
[05-13-2024-07:24:43][0]Filtered Value restart_pending - True
[05-13-2024-07:24:43][0]Filtered Value restart_pending - True
[05-13-2024-07:24:43][0]Filtered Value restart_pending - True
[05-13-2024-07:24:43][0]{
  "type": "update_sensor_states",
  "data": [
    {
      "icon": "mdi:tape-drive",
      "state": 32.6,
      "type": "sensor",
      "unique_id": "disk_0_space"
    },
    {
      "icon": "mdi:battery",
      "state": 35.0,
      "type": "sensor",
      "unique_id": "battery_level"
    },
    {
      "icon": "mdi:battery-minus",
      "state": "On AC",
      "type": "sensor",
      "unique_id": "battery_state"
    },
    {
      "icon": "mdi:clock",
      "state": 0.4,
      "type": "sensor",
      "unique_id": "free_ram"
    },
    {
      "icon": "mdi:cpu-64-bit",
      "state": 63.0,
      "type": "sensor",
      "unique_id": "cpu_usage"
    },
    {
      "icon": "mdi:wifi",
      "state": "connected",
      "type": "sensor",
      "unique_id": "wifi_state"
    },
    {
      "icon": "mdi:wifi",
      "state": "ax-secure",
      "type": "sensor",
      "unique_id": "wifi_ssid"
    },
    {
      "icon": "mdi:application",
      "state": "05_13_2024_log.log - Anteckningar",
      "type": "sensor",
      "unique_id": "currently_active_window"
    },
    {
      "icon": "mdi:timer-outline",
      "state": 666.0,
      "type": "sensor",
      "unique_id": "uptime"
    },
    {
      "icon": "mdi:camera",
      "state": false,
      "type": "binary_sensor",
      "unique_id": "camera_in_use"
    },
    {
      "icon": "mdi:microphone",
      "state": false,
      "type": "binary_sensor",
      "unique_id": "microphone_in_use"
    },
    {
      "icon": "mdi:crosshairs-gps",
      "state": false,
      "type": "binary_sensor",
      "unique_id": "location_in_use"
    },
    {
      "icon": "mdi:power-plug-off",
      "state": true,
      "type": "binary_sensor",
      "unique_id": "is_charging"
    },
    {
      "icon": "mdi:restart",
      "state": true,
      "type": "binary_sensor",
      "unique_id": "restart_pending"
    }
  ]
}
[05-13-2024-07:24:43][0]API RESPONSE CODE <200> OK
[05-13-2024-07:24:48][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:48][0]SELECT BatteryStatus FROM Win32_Battery[0]
[05-13-2024-07:24:48][0]ITERATOR 0
[05-13-2024-07:24:48][0]OUTPUT: 2
[05-13-2024-07:24:48][0]NAMESPACE root\wmi
[05-13-2024-07:24:48][0]SELECT PowerOnline FROM BatteryStatus[0]
[05-13-2024-07:24:48][0]ITERATOR 0
[05-13-2024-07:24:48][0]OUTPUT: True
[05-13-2024-07:24:48][0]all task query Done!
[05-13-2024-07:24:48][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:48][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:48][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:48][0]Filtered Value uptime - 666
[05-13-2024-07:24:48][0]Filtered Value uptime - 666
[05-13-2024-07:24:48][0]Filtered Value uptime - 666
[05-13-2024-07:24:48][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:48][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:48][0]Filtered Value location_in_use - False
[05-13-2024-07:24:48][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:48][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:48][0]Filtered Value location_in_use - False
[05-13-2024-07:24:48][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:48][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:48][0]Filtered Value location_in_use - False
[05-13-2024-07:24:48][0]Filtered Value is_charging - True
[05-13-2024-07:24:48][0]Filtered Value is_charging - True
[05-13-2024-07:24:48][0]Filtered Value is_charging - True
[05-13-2024-07:24:48][0]Filtered Value restart_pending - True
[05-13-2024-07:24:48][0]Filtered Value restart_pending - True
[05-13-2024-07:24:48][0]Filtered Value restart_pending - True
[05-13-2024-07:24:48][0]No data to send!
[05-13-2024-07:24:53][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:53][0]SELECT FreeSpace FROM Win32_LogicalDisk[0]
[05-13-2024-07:24:53][0]ITERATOR 0
[05-13-2024-07:24:54][0]OUTPUT: 35055849472
[05-13-2024-07:24:54][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:54][0]SELECT BatteryStatus FROM Win32_Battery[0]
[05-13-2024-07:24:54][0]ITERATOR 0
[05-13-2024-07:24:54][0]OUTPUT: 2
[05-13-2024-07:24:54][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:54][0]SELECT FreePhysicalMemory FROM Win32_OperatingSystem[0]
[05-13-2024-07:24:54][0]ITERATOR 0
[05-13-2024-07:24:54][0]OUTPUT: 802688
[05-13-2024-07:24:54][0]NAMESPACE root\CIMV2
[05-13-2024-07:24:54][0]SELECT LoadPercentage FROM Win32_Processor[0]
[05-13-2024-07:24:54][0]ITERATOR 0
[05-13-2024-07:24:55][0]OUTPUT: 27
[05-13-2024-07:24:56][0]NAMESPACE root\wmi
[05-13-2024-07:24:56][0]SELECT PowerOnline FROM BatteryStatus[0]
[05-13-2024-07:24:56][0]ITERATOR 0
[05-13-2024-07:24:56][0]OUTPUT: True
[05-13-2024-07:24:56][0]all task query Done!
[05-13-2024-07:24:56][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:56][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:56][0]Filtered Value free_ram - 0,8
[05-13-2024-07:24:56][0]Filtered Value cpu_usage - 27
[05-13-2024-07:24:56][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:56][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:56][0]Filtered Value free_ram - 0,8
[05-13-2024-07:24:56][0]Filtered Value cpu_usage - 27
[05-13-2024-07:24:56][0]Filtered Value disk_0_space - 32,6
[05-13-2024-07:24:56][0]Filtered Value battery_state - On AC
[05-13-2024-07:24:56][0]Filtered Value free_ram - 0,8
[05-13-2024-07:24:56][0]Filtered Value cpu_usage - 27
[05-13-2024-07:24:56][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:56][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:56][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:56][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:56][0]Filtered Value wifi_state - connected
[05-13-2024-07:24:56][0]Filtered Value wifi_ssid - ax-secure
[05-13-2024-07:24:56][0]Filtered Value uptime - 666
[05-13-2024-07:24:56][0]Filtered Value uptime - 666
[05-13-2024-07:24:56][0]Filtered Value uptime - 666
[05-13-2024-07:24:56][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:56][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:56][0]Filtered Value location_in_use - False
[05-13-2024-07:24:56][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:56][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:56][0]Filtered Value location_in_use - False
[05-13-2024-07:24:56][0]Filtered Value camera_in_use - False
[05-13-2024-07:24:56][0]Filtered Value microphone_in_use - False
[05-13-2024-07:24:56][0]Filtered Value location_in_use - False
[05-13-2024-07:24:56][0]Filtered Value is_charging - True
[05-13-2024-07:24:56][0]Filtered Value is_charging - True
[05-13-2024-07:24:56][0]Filtered Value is_charging - True
[05-13-2024-07:24:56][0]Filtered Value restart_pending - True
[05-13-2024-07:24:56][0]Filtered Value restart_pending - True
[05-13-2024-07:24:56][0]Filtered Value restart_pending - True
[05-13-2024-07:24:56][0]{
  "type": "update_sensor_states",
  "data": [
    {
      "icon": "mdi:clock",
      "state": 0.8,
      "type": "sensor",
      "unique_id": "free_ram"
    },
    {
      "icon": "mdi:cpu-64-bit",
      "state": 27.0,
      "type": "sensor",
      "unique_id": "cpu_usage"
    }
  ]
}
[05-13-2024-07:24:56][0]API RESPONSE CODE <200> OK

Was the log from this morning when both API and Websocket was red. Then I pressed the save button and it started working again.

I don't have the possibility to compile.

Sorry, yes task manager.

GamerClassN7 commented 6 months ago

i will ty to inspect it later today :) ca nyou also send log from previouse day ? thanks

GamerClassN7 commented 6 months ago

BTW Do you have DISCORD or something, so we can try to troubleshoot it more quickly ?

Hellis81 commented 6 months ago

Here is an older log, it seems this is where something goes bad.

[05-08-2024-06:58:23][0]all task query Done!
[05-08-2024-06:58:23][0]Filtered Value disk_0_space - 33,8
[05-08-2024-06:58:23][0]Filtered Value battery_level - 77
[05-08-2024-06:58:23][0]Filtered Value battery_state - On AC
[05-08-2024-06:58:23][0]Filtered Value free_ram - 0,5
[05-08-2024-06:58:23][0]Filtered Value cpu_usage - 88
[05-08-2024-06:58:23][0]Filtered Value disk_0_space - 33,8
[05-08-2024-06:58:23][0]Filtered Value battery_level - 77
[05-08-2024-06:58:23][0]Filtered Value battery_state - On AC
[05-08-2024-06:58:23][0]Filtered Value free_ram - 0,5
[05-08-2024-06:58:23][0]Filtered Value cpu_usage - 88
[05-08-2024-06:58:23][0]Filtered Value wifi_state - connected
[05-08-2024-06:58:23][0]Filtered Value wifi_ssid - ax-secure
[05-08-2024-06:58:23][0]Filtered Value wifi_state - connected
[05-08-2024-06:58:23][0]Filtered Value wifi_ssid - ax-secure
[05-08-2024-06:58:23][0]Filtered Value currently_active_window - Påfyllningar.xlsx - Excel
[05-08-2024-06:58:23][0]Filtered Value currently_active_window - Påfyllningar.xlsx - Excel
[05-08-2024-06:58:23][0]Filtered Value uptime - 545
[05-08-2024-06:58:23][0]Filtered Value uptime - 545
[05-08-2024-06:58:23][0]Filtered Value camera_in_use - False
[05-08-2024-06:58:23][0]Filtered Value microphone_in_use - False
[05-08-2024-06:58:23][0]Filtered Value location_in_use - False
[05-08-2024-06:58:23][0]Filtered Value camera_in_use - False
[05-08-2024-06:58:23][0]Filtered Value microphone_in_use - False
[05-08-2024-06:58:23][0]Filtered Value location_in_use - False
[05-08-2024-06:58:23][0]Filtered Value is_charging - True
[05-08-2024-06:58:23][0]Filtered Value is_charging - True
[05-08-2024-06:58:23][0]Filtered Value restart_pending - True
[05-08-2024-06:58:23][0]Filtered Value restart_pending - True
[05-08-2024-06:58:23][0]{
  "type": "update_sensor_states",
  "data": [
    {
      "icon": "mdi:tape-drive",
      "state": 33.8,
      "type": "sensor",
      "unique_id": "disk_0_space"
    },
    {
      "icon": "mdi:cpu-64-bit",
      "state": 88.0,
      "type": "sensor",
      "unique_id": "cpu_usage"
    }
  ]
}
[05-08-2024-06:58:30][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
[05-08-2024-06:58:32][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:33][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:33][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:34][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:35][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-06:58:35][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[05-08-2024-06:58:35][3][HA]System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.)
 ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.<FillHandshakeBufferAsync>g__InternalFillHandshakeBufferAsync|189_0[TIOAdapter](TIOAdapter adap, ValueTask`1 task, Int32 minSize)
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[05-08-2024-06:58:35][0]One or more errors occurred. (The SSL connection could not be established, see inner exception.)
[05-08-2024-06:58:43][3][HA]System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.Toolkit.Uwp.Notifications.IApplicationResolver.GetBestShortcutForAppID(String pszAppID, IShellItem& ppsi)
   at Microsoft.Toolkit.Uwp.Notifications.Win32AppInfo.Get()
[05-08-2024-06:58:47][0]WS state Open
[05-08-2024-06:58:47][0]WS closed
[05-08-2024-06:58:47][0]WS RECEEVE LOOP ENDED
[05-08-2024-06:58:52][0]NAMESPACE root\CIMV2
[05-08-2024-06:58:52][0]SELECT FreeSpace FROM Win32_LogicalDisk[0]
[05-08-2024-06:58:52][0]ITERATOR 0
[05-08-2024-06:58:53][0]OUTPUT: 36155260928
[05-08-2024-06:58:53][0]NAMESPACE root\CIMV2
[05-08-2024-06:58:53][0]SELECT EstimatedChargeRemaining FROM Win32_Battery[0]
[05-08-2024-06:58:53][0]ITERATOR 0
[05-08-2024-06:58:53][0]OUTPUT: 77
[05-08-2024-06:58:53][0]NAMESPACE root\CIMV2
[05-08-2024-06:58:53][0]SELECT BatteryStatus FROM Win32_Battery[0]
[05-08-2024-06:58:53][0]ITERATOR 0
[05-08-2024-06:58:53][0]OUTPUT: 2
[05-08-2024-06:58:53][0]NAMESPACE root\CIMV2
[05-08-2024-06:58:53][0]SELECT FreePhysicalMemory FROM Win32_OperatingSystem[0]
[05-08-2024-06:58:53][0]ITERATOR 0
[05-08-2024-06:58:53][0]OUTPUT: 556800
[05-08-2024-06:58:53][0]NAMESPACE root\CIMV2
[05-08-2024-06:58:53][0]SELECT LoadPercentage FROM Win32_Processor[0]
[05-08-2024-06:58:53][0]ITERATOR 0
[05-08-2024-06:58:54][0]OUTPUT: 77
[05-08-2024-06:58:59][0]NAMESPACE root\wmi
[05-08-2024-06:58:59][0]SELECT PowerOnline FROM BatteryStatus[0]
[05-08-2024-06:58:59][0]ITERATOR 0
[05-08-2024-06:58:59][0]OUTPUT: True
[05-08-2024-06:58:59][0]all task query Done!
[05-08-2024-06:58:59][0]Filtered Value disk_0_space - 33,7
[05-08-2024-06:58:59][0]Filtered Value battery_level - 77
[05-08-2024-06:58:59][0]Filtered Value battery_state - On AC
[05-08-2024-06:58:59][0]Filtered Value free_ram - 0,6
[05-08-2024-06:58:59][0]Filtered Value cpu_usage - 77
[05-08-2024-06:58:59][0]Filtered Value disk_0_space - 33,7
[05-08-2024-06:58:59][0]Filtered Value battery_level - 77

Here is another

[05-08-2024-07:00:36][0]Filtered Value uptime - 545
[05-08-2024-07:00:36][0]Filtered Value uptime - 545
[05-08-2024-07:00:36][0]Filtered Value camera_in_use - False
[05-08-2024-07:00:36][0]Filtered Value microphone_in_use - False
[05-08-2024-07:00:36][0]Filtered Value location_in_use - False
[05-08-2024-07:00:36][0]Filtered Value camera_in_use - False
[05-08-2024-07:00:36][0]Filtered Value microphone_in_use - False
[05-08-2024-07:00:36][0]Filtered Value location_in_use - False
[05-08-2024-07:00:36][0]Filtered Value is_charging - True
[05-08-2024-07:00:36][0]Filtered Value is_charging - True
[05-08-2024-07:00:36][0]Filtered Value restart_pending - True
[05-08-2024-07:00:36][0]Filtered Value restart_pending - True
[05-08-2024-07:00:36][0]No data to send!
[05-08-2024-07:00:41][3][HA]System.IO.IOException: Unable to read data from the transport connection: I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det..
 ---> System.Net.Sockets.SocketException (995): I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
[05-08-2024-07:00:41][3][HA]System.IO.IOException: Unable to read data from the transport connection: I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det..
 ---> System.Net.Sockets.SocketException (995): I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
[05-08-2024-07:00:41][3][HA]System.IO.IOException: Unable to read data from the transport connection: I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det..
 ---> System.Net.Sockets.SocketException (995): I/O-åtgärden har avbrutits därför att en tråd har avslutats eller för att ett program har begärt det.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-07:00:41][0]NAMESPACE root\CIMV2
[05-08-2024-07:00:41][0]SELECT FreeSpace FROM Win32_LogicalDisk[0]
[05-08-2024-07:00:41][0]ITERATOR 0
[05-08-2024-07:00:41][0]OUTPUT: 36155727872
[05-08-2024-07:00:41][0]NAMESPACE root\CIMV2
[05-08-2024-07:00:41][0]SELECT EstimatedChargeRemaining FROM Win32_Battery[0]
[05-08-2024-07:00:41][0]ITERATOR 0
[05-08-2024-07:00:41][0]OUTPUT: 78
[05-08-2024-07:00:41][0]NAMESPACE root\CIMV2
[05-08-2024-07:00:41][0]SELECT BatteryStatus FROM Win32_Battery[0]
[05-08-2024-07:00:41][0]ITERATOR 0
[05-08-2024-07:00:41][0]OUTPUT: 2
[05-08-2024-07:00:41][0]NAMESPACE root\CIMV2
[05-08-2024-07:00:41][0]SELECT FreePhysicalMemory FROM Win32_OperatingSystem[0]
[05-08-2024-07:00:41][0]ITERATOR 0

And another:

[05-08-2024-11:09:02][0]Filtered Value camera_in_use - False
[05-08-2024-11:09:02][0]Filtered Value microphone_in_use - False
[05-08-2024-11:09:02][0]Filtered Value location_in_use - False
[05-08-2024-11:09:02][0]Filtered Value camera_in_use - False
[05-08-2024-11:09:02][0]Filtered Value microphone_in_use - False
[05-08-2024-11:09:02][0]Filtered Value location_in_use - False
[05-08-2024-11:09:02][0]Filtered Value is_charging - True
[05-08-2024-11:09:02][0]Filtered Value is_charging - True
[05-08-2024-11:09:02][0]Filtered Value restart_pending - True
[05-08-2024-11:09:02][0]Filtered Value restart_pending - True
[05-08-2024-11:09:02][0]{
  "type": "update_sensor_states",
  "data": [
    {
      "icon": "mdi:cpu-64-bit",
      "state": 69.0,
      "type": "sensor",
      "unique_id": "cpu_usage"
    }
  ]
}
[05-08-2024-11:09:08][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
[05-08-2024-11:09:09][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[05-08-2024-11:09:09][3][HA]System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[05-08-2024-11:09:09][3][HA]System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.)
 ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[05-08-2024-11:09:09][0]One or more errors occurred. (The SSL connection could not be established, see inner exception.)
[05-08-2024-11:09:12][3][HA]System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.Toolkit.Uwp.Notifications.IApplicationResolver.GetBestShortcutForAppID(String pszAppID, IShellItem& ppsi)
   at Microsoft.Toolkit.Uwp.Notifications.Win32AppInfo.Get()
[05-08-2024-11:09:13][0]WS state Open
[05-08-2024-11:09:13][0]WS closed
[05-08-2024-11:09:14][0]WS RECEEVE LOOP ENDED
[05-08-2024-11:09:19][0]NAMESPACE root\CIMV2
[05-08-2024-11:09:19][0]SELECT FreeSpace FROM Win32_LogicalDisk[0]
[05-08-2024-11:09:19][0]ITERATOR 0
[05-08-2024-11:09:19][0]OUTPUT: 34439401472
[05-08-2024-11:09:19][0]NAMESPACE root\CIMV2
[05-08-2024-11:09:19][0]SELECT EstimatedChargeRemaining FROM Win32_Battery[0]

Looking through the logs it seems the Received an unexpected EOF or 0 bytes from the transport stream. is the issue. The other error I posted above is not as common

GamerClassN7 commented 6 months ago

Received an unexpected EOF or 0 bytes from the transport stream indicates that server don't answered rest api connection successfully, can be common if you switch networks to often. Would you be ale to message me on discord so i can maybe provide you wit betaversion of new build to test it it resolve the issue ?

Discord server i created for better comunication

GamerClassN7 commented 6 months ago

Related Issue https://github.com/GamerClassN7/HA_Desktop_Companion/issues/69

Hellis81 commented 6 months ago

We only have one network here at work. A lot of access points but just one network.

I know that at around 7 in the morning I'm just below an access point. That is before all my colleagues has cone to work and I usually sit at my desk and get stuff done. The PC is 3 m with line of sight from the access pint.

It could be that it dropped the wifi. But usually that also means a lot of my other stuff stops working. Some of the times I know that it has for sure had wifi since I have been trying to trouble shoot by having my HA instance on the web browser.

GamerClassN7 commented 6 months ago

Issues sems to be relate to network site, how ever more robust WS Integration in new "Reborn" APP is able to reconnect afterwards. So Closing as Addressed in upcoming Release.

Hellis81 commented 6 months ago

The new version you sent me is very solid. It survives even when I bring the PC home for the night and reconnects just fine.

The old version lost connection to websocket again today and the new one just briefly reports it in the logs and then connects again. Well done

Hellis81 commented 6 months ago

One thing I noticed though. This is a very minor thing. The logs are divided by days now (great) but the actual split does not happen by day.

Here is the log from yesterday and you can see when it fails to connect and the last line of yesterday (yellow line). Then the next day starts just below instead of in a new file.

image

But the main thing is that it connects as it should and everything works just as expected.

GamerClassN7 commented 6 months ago

One thing I noticed though. This is a very minor thing. The logs are divided by days now (great) but the actual split does not happen by day.

Here is the log from yesterday and you can see when it fails to connect and the last line of yesterday (yellow line). Then the next day starts just below instead of in a new file.

image

But the main thing is that it connects as it should and everything works just as expected.

Could you please reopen new issue for logs ? i already implemented new fix, but there is a problem with multi-thread approach of new version