sleevezipper / hass-workstation-service

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

Feature Request: Pending Reboot #55

Open MisterPhoton opened 3 years ago

MisterPhoton commented 3 years ago

Hi, great work on this, looking forward to getting it up and running on my workstation.

Something I'd love to see added is a Pending Reboot sensor - would be nice to be able to trigger a reboot if, for instance. (pending reboot + workstation idle + weekend + night time hours).

sleevezipper commented 3 years ago

Thanks for the kind words!

I'm not entirely sure what you mean by Pending Reboot. Do you mean what happens after Windows Update has downloaded a new update?

MisterPhoton commented 3 years ago

Yes - there are registry flags that are set by Windows after either a Windows Update or other change that requires a restart.

https://stackoverflow.com/questions/43596427/how-to-check-if-a-server-needs-a-reboot

The RMM tool we use at my office has a flag for it so I can bug people to restart their computer after an update. 😄

sleevezipper commented 3 years ago

Oh sweet! Thanks for the extra information.