LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
101 stars 17 forks source link

Volume level attribute only updates when media is playing #41

Closed vaibhav2912 closed 6 months ago

vaibhav2912 commented 6 months ago

Hi,

I noticed yesterday PC volume level sensor only updates when media is playing on the PC. Even if I change volume on my PC or change it through homeassistant, volume level attribute doesn't update unless I play some media on my PC.

Is this intended or a bug ? If this is intended, is it possible to update the volume level attribute regardless of state of media playback ?

Regards, Vaibhav

vaibhav2912 commented 6 months ago

[ SOLVED ] I was looking at the media_player attribute for volume updates which only updates when media is playing on the PC. But there is a CurrentVolume sensor you can enable which will always keep track of and show current volume of the PC.

I have started using that.

If I change volume using media_player entity on homeassistant and also change volume directly on the PC, this sensor updates correctly.

image