I use this one I got from another thread to grab the variables of a Hue light and then restore them when I am done.
[{"id":"9a3534ea.0efa68","type":"tab","label":"Store & Restore Hue","disabled":false,"info":""},{"id":"71c52db0.fdcfa4","type":"inject","z":"9a3534ea.0efa68","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":340,"wires":[["6fe3f95e.85969"]]},{"id":"6fe3f95e.85969","type":"api-current-state","z":"9a3534ea.0efa68","name":"","server":"f65952bb.822ef","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":true,"entity_id":"light.office_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":350,"y":340,"wires":[["b5ba0383.6c7b5"]]},{"id":"b5ba0383.6c7b5","type":"switch","z":"9a3534ea.0efa68","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":340,"wires":[["f629912a.1ab62"],["8189d023.566ae8"]]},{"id":"f629912a.1ab62","type":"change","z":"9a3534ea.0efa68","name":"","rules":[{"t":"set","p":"lightState","pt":"flow","to":"{ \"service\" : \"turn_on\",\t \"data\" : { \t \"entity_id\" : $string(topic),\t \"brightness\" : $number(data.attributes.brightness),\t \"rgb_color\" : data.attributes.rgb_color\t }\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":300,"wires":[["617c9fba.0465e8"]]},{"id":"8189d023.566ae8","type":"change","z":"9a3534ea.0efa68","name":"","rules":[{"t":"set","p":"lightState","pt":"flow","to":"{ \"service\" : \"turn_off\",\t \"data\" : { \t \"entity_id\" : $string(topic)\t }\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":360,"wires":[["d037553b.e27368"]]},{"id":"6b0f35fd.6a8874","type":"change","z":"9a3534ea.0efa68","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"lightState","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":540,"wires":[["57f37873.e15288","388a6732.5b0b48"]]},{"id":"57f37873.e15288","type":"api-call-service","z":"9a3534ea.0efa68","name":"","server":"f65952bb.822ef","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.office_light","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":630,"y":500,"wires":[[]]},{"id":"388a6732.5b0b48","type":"debug","z":"9a3534ea.0efa68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":590,"y":580,"wires":[]},{"id":"617c9fba.0465e8","type":"api-call-service","z":"9a3534ea.0efa68","name":"","server":"f65952bb.822ef","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.office_light","data":"{\"color_name\":\"red\",\"brightness\":\"255\",\"flash\":\"long\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":300,"wires":[["10b64f4b.8b3aa1"]]},{"id":"10b64f4b.8b3aa1","type":"stoptimer","z":"9a3534ea.0efa68","duration":"15","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":150,"y":540,"wires":[["6b0f35fd.6a8874"],[]]},{"id":"d037553b.e27368","type":"api-call-service","z":"9a3534ea.0efa68","name":"","server":"f65952bb.822ef","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.office_light","data":"{\"color_name\":\"red\",\"brightness\":\"255\",\"flash\":\"long\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":360,"wires":[["10b64f4b.8b3aa1"]]},{"id":"f65952bb.822ef","type":"server","z":"","name":"HA","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]
Not sure if this helps any