home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.32k stars 30.63k forks source link

Restoring on the fly Snapshot Entities is broken #124552

Closed SnowJackal closed 1 month ago

SnowJackal commented 2 months ago

The problem

Creating temporary snapshot entities to revert to later in the same automation no longer works.

What version of Home Assistant Core has the issue?

core-2024.8.2

What was the last working version of Home Assistant Core?

unsure

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

alias: "X - NFL Button 1: Touchdown"
description: ""
trigger:
  - device_id: ca2a6bd96c1114adaf28cfeaede09e97
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: button_1
condition: []
action:
  - metadata: {}
    data:
      snapshot_entities:
        - light.living_room_can_light_1
        - light.living_room_can_light_2
        - light.lamp_bulb_1
        - light.lamp_bulb_2
        - light.lamp_bulb_3
        - light.tv_lightstrip
        - light.tv_gradient_bar
        - light.island_1
        - light.island_2
        - light.island_3
      scene_id: football_day
    enabled: true
    action: scene.create
  - action: media_player.play_media
    target:
      entity_id: media_player.micah_s_speaker
    data:
      media_content_id: media-source://media_source/local/Bills Touchdown.mp3
      media_content_type: audio/mpeg
    metadata:
      title: Bills Touchdown.mp3
      thumbnail: null
      media_class: music
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://media_source
  - metadata: {}
    data:
      brightness_pct: 100
    target:
      entity_id:
        - light.living_room_can_light_1
        - light.living_room_can_light_2
        - light.island_1
        - light.island_2
        - light.island_3
        - light.tv_gradient_bar
        - light.tv_lightstrip
        - light.lamp_bulb_1
        - light.lamp_bulb_2
        - light.lamp_bulb_3
    action: light.turn_on
    enabled: true
  - repeat:
      count: 14
      sequence:
        - data:
            flash: short
          target:
            entity_id:
              - light.living_room_can_light_1
              - light.living_room_can_light_2
              - light.lamp_bulb_1
              - light.lamp_bulb_2
              - light.lamp_bulb_3
              - light.island_1
              - light.island_2
              - light.island_3
              - light.tv_gradient_bar
              - light.tv_lightstrip
          action: light.turn_on
          enabled: true
  - action: scene.turn_on
    metadata: {}
    target:
      entity_id: scene.football_day
mode: single

Anything in the logs that might be useful for us?

No response

Additional information

home-assistant[bot] commented 2 months ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (scene) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `scene` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign scene` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


scene documentation scene source (message by IssueLinks)

SnowJackal commented 2 months ago

Still an issue in Core-2024.8.3

SnowJackal commented 1 month ago

Still an issue in Core-2024.9.0

joostlek commented 1 month ago

Can you post the full logs

SnowJackal commented 1 month ago

Can you post the full logs

After some research, this appears to be a related to #122165 . The logs show successful, but only the actual brightness appears to be reverting, not the color, which is the main issue in #122165 .

SnowJackal commented 1 month ago

Fixed along with #122165