In a script, I am capturing the state of a lamp by using scene.create. The lamp is a smart bulb with RGB or Temperature color adjustment. Before the script runs, the lamp is in temperature mode. The script then changes it to color mode. After the script is done, it attempts to revert the lamp back by using scene.turn_on. Here are the relevant snippets from the script:
sequence:
- action: scene.create
data:
scene_id: before_leak_alert
snapshot_entities: "{{ lights }}"
sequence:
- action: scene.turn_on
data:
entity_id: scene.before_leak_alert
The problem is the lamp goes back to the previous brightness but not the previous temperature. Am I missing something on how to capture the correct state in scene.create?