I’m attempting to test the scene_create function for future projects but even the simplest of tests are failing to revert the light to its previous state; off or white, the light changes colour to green as expected with no errors in the logs.
- id: colourlight
alias: colorlight
description:
trigger:
- event_data:
name: switch
event_type: sonoff.remote
platform: event
action:
- data:
scene_id: before
snapshot_entities: light.322337452462ab0e8a70
service: scene.create
- data:
entity_id: 'light.322337452462ab0e8a70'
rgb_color:
- 0
- 255
- 0
service: light.turn_on
- delay:
seconds: 3
- data:
entity_id: scene.before