The issue is that my Google Chromecast returns to 100% volume every time it’s turned on (from an Unavailable state).
I’ve tried setting an automation to trigger From: Unavailable, but it never triggers. I was able to get it to trigger From: off state, but action: media_player.volume_set doesn’t adjust the volume.
alias: aYamaha ON Volume Set
description: ""
trigger:
- platform: state
entity_id:
- media_player.yamaha_receiver
from: "off"
condition: []
action:
- service: media_player.volume_set
data:
volume_level: 0.33
target:
entity_id: media_player.yamaha_receiver
mode: single
This looks like it should work, right? It does actually, but only if I manually run it. If I turn off the Chromecast, then turn it back on, it comes back at FULL VOLUME even though in HA it shows that it’s set to 0.33.
The real issue is that Chromecast automatically resets itself to 100% volume when it is powered on and doesn’t remember its last setting.