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

Run as Windows Service #175

Open Swamp-Ig opened 2 years ago

Swamp-Ig commented 2 years ago

Currently the default for hass workstation service is to run as a user in usermode. This means when you log out, the service no longer works.

It would be good to have the option to:

b-0s commented 2 years ago

For my self, I do not use the installer. I use the standalone version and create a service that will point to the hass service exe. I mostly use anysrv to do so.

Swamp-Ig commented 2 years ago

I use the standalone version and create a service that will point to the hass service exe. I mostly use anysrv to do so.

This doesn't work particularly well. If you try and use the logout command or something which runs as the current user, it doesn't work. Some of the sensors, like the last active sensor, don't work properly.

b-0s commented 2 years ago

I use the standalone version and create a service that will point to the hass service exe. I mostly use anysrv to do so.

This doesn't work particularly well. If you try and use the logout command or something which runs as the current user, it doesn't work. Some of the sensors, like the last active sensor, don't work properly.

Yes I know. It was merely a suggestion. I barely use it for commands and it is mostly to monitor my servers. But indeed a more capable solution for the service part and for workstations is welcomed.