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
72.96k stars 30.52k forks source link

Snapshot for entities doesn't work anymore in automations #114095

Closed Danifly80 closed 4 months ago

Danifly80 commented 7 months ago

The problem

The switch entities can't be snapshotted anymore in the automations. The logs tell me the entities doesn't exist, but the other commands in the same automation for the same entities works as expected.

One of the automation code is here below:

- alias: termos_ap_bgn_etage_elettrico_aperte
    id: 43fc5224-363e-4ee6-b56c-e37c94fa22ea
    trigger:
    - platform: state
      entity_id: binary_sensor.velux_bgn_etage
      from: 'off'
      to: 'on'
      for:
        hours: 0
        minutes: 0
        seconds: 0
    condition: 
    - condition: state
      entity_id: input_boolean.termos_modo_inverno
      state: 'on'
    action:
    - service: scene.create
      data:
        scene_id: before_ap_bgn_etage_elettrico
        snapshot_entities:
        # - climate.termos_bgn_etage_elettrico
        - switch.schedule_termos_bgn_etage_elettrico_week
        - switch.schedule_termos_bgn_etage_elettrico_wendin
    - service: switch.turn_off
      target:
        entity_id: 
        - switch.schedule_termos_bgn_etage_elettrico_week
        - switch.schedule_termos_bgn_etage_elettrico_wendin
    - service: climate.set_hvac_mode
      data:
        hvac_mode: 'off'
      target:
        entity_id: climate.termos_bgn_etage_elettrico

What version of Home Assistant Core has the issue?

2024.3.3

What was the last working version of Home Assistant Core?

core-2024.3.1

What type of installation are you running?

Home Assistant Core

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Registratore: homeassistant.components.homeassistant.scene
Fonte: components/homeassistant/scene.py:252
integration: Home Assistant Core Integration (documentazione, problemi)
Prima occorrenza: 23 marzo 2024 alle ore 21:59:44 (2 occorrenze)
Ultima registrazione: 23 marzo 2024 alle ore 22:03:54

Entity switch.schedule_termos_bgn_etage_elettrico_wendin does not exist and therefore cannot be snapshotted

Additional information

No response

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.