I’m having difficulties doing a new automation. As a notification i want to change the color to red of a led strip for a brief period and then restore the same color it was before.
I’m doing this by saving the original color before changing it but when i try to assing it back i’m getting an error that i cannot solve
Here is the flow i’m using
[{"id":"e693cc4f.4bf8f","type":"tab","label":"Test","disabled":false,"info":""},{"id":"bea6c982.b7ffa8","type":"debug","z":"e693cc4f.4bf8f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1070,"y":240,"wires":[]},{"id":"5bb59f74560ef19b","type":"api-call-service","z":"e693cc4f.4bf8f","name":"Tira LED rojo","server":"afedd0b.9c9ec3","version":3,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.lampux_rgbstriplight","data":"{ \"rgb_color\": [255,0,0] }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":490,"y":480,"wires":[["a47e411c3c4c13bb"]]},{"id":"01f44f99d12d6a47","type":"api-call-service","z":"e693cc4f.4bf8f","name":"Tira LED restaurar color","server":"afedd0b.9c9ec3","version":3,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"","data":"{ \"entity_id\": \"light.lampux_rgbstriplight\", \"rgb_color\": {{LED.attributes.rgb_color}}}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1050,"y":480,"wires":[[]]},{"id":"a47e411c3c4c13bb","type":"delay","z":"e693cc4f.4bf8f","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":740,"y":480,"wires":[["01f44f99d12d6a47","bea6c982.b7ffa8"]]},{"id":"1b15eaca3c44a524","type":"api-current-state","z":"e693cc4f.4bf8f","name":"Tira LED","server":"afedd0b.9c9ec3","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.lampux_rgbstriplight","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"LED","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":280,"y":480,"wires":[["5bb59f74560ef19b"]]},{"id":"29af594d15844abb","type":"inject","z":"e693cc4f.4bf8f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":480,"wires":[["1b15eaca3c44a524"]]},{"id":"afedd0b.9c9ec3","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]