I am trying to get the following flow working but I keep running into an error that is stumping me.
The error occurs in the Template node. I thought I had the formatting correct, but something is causing the error.
I am attempting to use the get entities node to then only change the color temp on lights that are turned on.
I would love some help/feedback.
Thanks
[{"id":"35d525fd.e385ca","type":"tab","label":"Flow 30","disabled":false,"info":""},{"id":"a94a3a4a.970358","type":"poll-state","z":"35d525fd.e385ca","name":"","server":"ea5ed475.5c5908","updateinterval":"10","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.circadian_values","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":320,"y":160,"wires":[["d6cd7cd7.63e56"]]},{"id":"135bedd3.051c62","type":"api-call-service","z":"35d525fd.e385ca","name":"On","server":"ea5ed475.5c5908","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.test_lamp\"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":730,"y":220,"wires":[[]]},{"id":"d6d648d9.b8ae48","type":"template","z":"35d525fd.e385ca","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"data\":\n{\n\"entity_id\": {{payload.entity_id}},\n\"color_temp\": {{flow.testlightcolor}},\n\"transition\": 10\n}\n}\n\n","output":"json","x":560,"y":220,"wires":[["135bedd3.051c62"]]},{"id":"9ea7ceb6.b56ac","type":"ha-get-entities","z":"35d525fd.e385ca","server":"ea5ed475.5c5908","name":"","rules":[{"property":"entity_id","logic":"includes","value":"light.test_lamp,light.livingroom_hutch_lamp_1,light.livingroom_hutch_lamp_2,light.olivia_bedroom_lamp,light.jakes_lamp","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":350,"y":220,"wires":[["d6d648d9.b8ae48"]]},{"id":"e860c8e.e0d7e38","type":"inject","z":"35d525fd.e385ca","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":220,"wires":[["9ea7ceb6.b56ac"]]},{"id":"d6cd7cd7.63e56","type":"change","z":"35d525fd.e385ca","name":"","rules":[{"t":"set","p":"testlightcolor","pt":"flow","to":"data.attributes.colortemp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":160,"wires":[["95baec8c.add19"]]},{"id":"95baec8c.add19","type":"debug","z":"35d525fd.e385ca","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":810,"y":160,"wires":[]},{"id":"ea5ed475.5c5908","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]