Read states/attributes saved inside a scene

Can you check what entity states/attributes are in a dynamic scene, created with scene.create and snapshot_entities? I.e. what states would entities get if the scene were applied

I would like to save a dynamic scene as a snapshot of a climate entity and then check whether the set temperature has changed compared to what’s in the snapshot.

1 Like

Did you ever work this out as I would be interested in this too

It’s not possible, as far as I’ve learned

I am trying to do something similar (for a scene created via the UI – I haven’t tried scene.create).

I found you can get the entities that are part of a scene:

`{{ state_attr('scene.kitchen_dim', 'entity_id') }}`

returns:

['light.dining_room_pot_lights', 'light.kitchen_pot_lights', 
 'light.kitchen_main', 'light.dining_room_table']

But I haven’t had luck getting anything else, for example:

{{ state_attr('scene.kitchen_dim', 'brightness') }}

only returns

None

The data I need is saved in scenes.yaml:

- id: '1675645459227'
  name: Kitchen Dim
  entities:
    light.dining_room_pot_lights:
      supported_color_modes:
      - brightness
      friendly_name: Dining Room Pot Lights
      supported_features: 32
      state: 'off'
    light.kitchen_pot_lights:
      supported_color_modes:
      - brightness
      friendly_name: Kitchen Pot Lights
      supported_features: 32
      color_mode: brightness
      brightness: 41
      state: 'on'
    light.kitchen_main:
      supported_color_modes:
      - onoff
      friendly_name: Kitchen Main
      supported_features: 0
      state: 'off'
    light.dining_room_table:
      supported_color_modes:
      - brightness
      friendly_name: Dining Room Table
      supported_features: 32
      state: 'off'
  metadata:
    light.dining_room_pot_lights:
      entity_only: true
    light.kitchen_pot_lights:
      entity_only: true
    light.kitchen_main:
      entity_only: true
    light.dining_room_table:
      entity_only: true