Use LED strip as confirmation and return to off state but with previous color and brightness

Hi,

I’m trying to create an automation that turns off all lights in the house (currently light.table), on a second press of the off button in my bedroom.
This is works great.

However, I would like to have a confirmation that the lights in the house have been turned off, by having my led strip turn on with brightness 1 and just red. After 2 seconds, I would like it to turn off again.
Also working.

But, I’d like, that the next time I turn on this LED strip, that this light would return back to its original color and brightness.
So I’ve tried saving the state of the light in a scene, and setting it back to that scene on turning off.
The light turns off again, but it doesn’t seem to save the brightness and color. Is there any way to make this work?

My flow so far

[{"id":"efb8a191.3bb808","type":"server-state-changed","z":"a2489e5.77ddfe","name":"Attic click off","server":"b0783844.cf9108","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.zolder_schakelaar_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":100,"y":160,"wires":[["d25243f6.7b2df"],[]]},{"id":"d25243f6.7b2df","type":"api-current-state","z":"a2489e5.77ddfe","name":"Attic lights are off","server":"b0783844.cf9108","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.zolder","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":330,"y":160,"wires":[["5487e346.2fce14"],[]]},{"id":"5487e346.2fce14","type":"api-call-service","z":"a2489e5.77ddfe","name":"Turn off all lights","server":"b0783844.cf9108","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.tafel","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":160,"wires":[["691f0696.f07438"]]},{"id":"691f0696.f07438","type":"api-call-service","z":"a2489e5.77ddfe","name":"save_led_status","server":"b0783844.cf9108","version":1,"debugenabled":false,"service_domain":"scene","service":"create","entityId":"","data":"{\"scene_id\":\"zolder_led_state\",\"snapshot_entities\":\"light.zolder_led\"}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":780,"y":160,"wires":[["94984b5b.e8fdf8"]]},{"id":"94984b5b.e8fdf8","type":"api-call-service","z":"a2489e5.77ddfe","name":"set attic led to red","server":"b0783844.cf9108","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.zolder_led","data":"{\"rgb_color\":[10,0,0], \"brightness\":1}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":160,"wires":[["c130d30.70ee03"]]},{"id":"c130d30.70ee03","type":"delay","z":"a2489e5.77ddfe","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1200,"y":160,"wires":[["2c901fed.8595f"]]},{"id":"2c901fed.8595f","type":"api-call-service","z":"a2489e5.77ddfe","name":"return attic led state","server":"b0783844.cf9108","version":1,"debugenabled":false,"service_domain":"scene","service":"turn_on","entityId":"scene.zolder_led_state","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1400,"y":160,"wires":[[]]},{"id":"ab066812.7951e8","type":"comment","z":"a2489e5.77ddfe","name":"On double click, turn off all lights","info":"","x":160,"y":100,"wires":[]},{"id":"b0783844.cf9108","type":"server","name":"Home Assistant","addon":true}]

Have you tried using the change function? With “Change” you can set, change, delete or move properties of a message, flow context or global context.

Thank you riccardo, I however don’t really see how that will help me. Do you think the issue is in setting the color on a turned off light? or does just the flow not work?