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

Custom sensors #144

Closed kzvdar42 closed 2 years ago

kzvdar42 commented 2 years ago

Is there a way to create custom sensors?

Like if I want to track if the specific process is running?

sleevezipper commented 2 years ago

Not yet for processes, but there's a NamedWindowSensor that will expose if a window with a specific title is found. Would that work for you?

kzvdar42 commented 2 years ago

Thanks for the answer!

No, as my process doesn't have a window.

I think that would be a great feature!

kzvdar42 commented 2 years ago

Ok, I didn't see the WMIQuerySensor, this sensor serves my problem, as shown in your documentation: Select * from Win32_Process Where Name = 'notepad.exe'

Thanks for a great integration!

sleevezipper commented 2 years ago

Nice!