essentially this is recording the state of a few lights (state/color/brightness) and media_players (volume)
- action: scene.create
data:
scene_id: voor_oprit_detectie
snapshot_entities: >
{{union(label_entities('alarm_lamp'), ['media_player.alarm_players'])}}
(note this is done with the new union
list template option in 2025.4 beta and identical to other template options like
{{label_entities('alarm_lamp') +
state_attr('media_player.alarm_players','entity_id')}}
# or
{{label_entities('alarm_lamp') + ['media_player.alarm_players']}}
executing some intermediary action (and upping the volume)
and then restore the previously restored lights/media_players states.
- action: scene.turn_on
target:
entity_id: scene.voor_oprit_detectie
everything works, not errors in the logs, but the media_players remain on the adjusted volume level which is set in the intermediate action.
cant this be done?
Given nothing nis documented particularly on volume level, I filed the above issue, but this seems the more appropriate spot to add comments or suggestions, so please if you know what to do, or what this cant be done, Id appreciate the feedback
I can of course reset the volume manually, but that would be killing the elegance of the scene on the fly.
update
seems the volume is not available when the players are ‘off’… I can only manually reset because of that.
Not sure if that is a FR, and not a plain issue… the volume is set on those players, as is obvious when starting playing without setting a volume level first. They use their recorded volume level from before that play action.
anyways, ive added that to the issue above, hope to get some feedback there.