sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Session State remains unknown #39

Closed Chreece closed 3 years ago

Chreece commented 3 years ago

Hello,

I want to thank you for your time creating something so useful! I am sure it will grow up and will be a top app/service for all IOT users. I have migrated from IOTLink since I had some issues with reconnections after hibernate and it seems a dead project since there is no recently update.

Unfortunately I couldn't get the Session State sensor to work. It stays in unknown state.

Is there something to do about it?

sleevezipper commented 3 years ago

Hi! Thank you for the kind words.

This could be a permission issue. Does your device have any restrictions set by your employer?

Chreece commented 3 years ago

Thank you for your answer! No it's a private laptop, I can try whatever you have to suggest me :)

sleevezipper commented 3 years ago

Haha nice.

Just to verify, other sensor types work like they should?

Chreece commented 3 years ago

Yes, i.e. Last Active and Active Window are working great!

sleevezipper commented 3 years ago

Cool. I'll cook up a new build this weekend with some extra logging as I can't reproduce this. Did you use the installer or the standalone?

Chreece commented 3 years ago

That sounds great! I did use the installer

sleevezipper commented 3 years ago

This is gonna take me a bit longer, sorry about that. The company I work at will be moving this week and I needed to do the network infrastructure and servers at the new location.

Chreece commented 3 years ago

Are you serious? I'm not your Boss! Please ignore my issue, I have to thank you for your time involving in a service application that I get to use for free :)

sleevezipper commented 3 years ago

Hi @Chreece,

I finally got to this. Hope I didn't keep you waiting for too long.

There's a few steps to follow:

  1. Download this and unpack it somewhere
  2. Kill hass-workstation-service.exe in task manager
  3. Run hass-workstation-service.exe you just unpacked
  4. Run UserInterface.exe so you can see the sensor failing
  5. Press Win + R and paste this: %localappdata%\Hass Workstation Service\logs
  6. Send me the newest file
sleevezipper commented 3 years ago

Thanks for working with me on Discord @Chreece. This was fixed in a8f749557fd8724930d29470b00358b8d8e9cc32 and will be in the next release.