Snapshot_entities not working

Hello,

I’m trying to create an automation to when my front door opens, my LED strip turns on red. Then I want the LED strip returns to its original state.

But it’s not working. The LED strip turns on red, but it does not return to its original state.

The snapshot scene is created and when I try to execute manually, nothing happens.

The funny part is the LED strip device in Home Assistant panel is marked as off when it’s actually on.

alias: Door opens
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.suite
    from: 'off'
    to: 'on'
condition: []
action:
  - service: scene.create
    data:
      scene_id: before
      snapshot_entities:
      - light.cama
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    target:
      entity_id: light.cama
    data:
      color_name: red
      brightness_pct: 100
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - service: scene.turn_on
    target:
      entity_id: scene.before
mode: single

I added the delay between scene.create and
light.turn_on as an attempt to make it works (didn’t work).

It looks like your spacing is off.

action:
  - service: scene.create
    data:
      scene_id: before
      snapshot_entities:
        - light.cama

Just updated. Nothing happens, same problem.

I did some tests, and seems when the data is added to the light.turn_on service, the snapshot breaks.

I changed the automation to only turn the LED strip on (removing the data). It worked.

A bug maybe?

You are not going to be able to automate this device if it is not providing correct feedback of its state to home assistant. Fix that first.