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

Feature request: Media sensor #63

Open HepoH3 opened 3 years ago

HepoH3 commented 3 years ago

It would be great if there will be a media sensor which telling us is there some media playing on the PC (which will be paused if you send pause command). I believe it can be done, because windows 10 can track playing media from lot of sources. Also, did you hear about IoTLink project? It very close for your one and maybe you can get a few ideas or something from it.

sleevezipper commented 3 years ago

Thanks for your suggestion! I'll look into it later.

DanielBaulig commented 2 years ago

I would like this sensor, too.

IOTLink used to provide this functionality through CoreAudio, which I believe is also part of this project. Here's a link to the old code in IOTLink that (among other things) provided Media Playback state:

https://gitlab.com/iotlink/iotlink/-/commit/2e2c740a5980f61f6c0ba45b13c67cba24f49c55

IOTLink removed Core Audio because of a memory leak it had and hasn't been under active development anymore since.

HepoH3 commented 2 years ago

Implemented in this project.