hi all
i stole a flow from here some time ago that gets all lights that are on and turns them off
i'd love to use this to auto change my lights brightness when my home mode goes from day to evening.
Here's what i'm trying which is giving error, i'm sure it's an easy fix but i'm not sure how to do it in the node "evening mode brightness"
thank you
[{"id":"f2677c379f9a1297","type":"ha-get-entities","z":"cf558353c0517902","name":"get lights that are on","server":"f9088194.9ff3a","version":0,"rules":[{"property":"entity_id","logic":"starts_with","value":"light.","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"array","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":1200,"y":360,"wires":[["11529c2a6313b4e9"]]},{"id":"11529c2a6313b4e9","type":"api-call-service","z":"cf558353c0517902","name":"evening brightness","server":"f9088194.9ff3a","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":[],"deviceId":[],"entityId":[],"data":"{\"entity_id\": $join(\"brightness\":130,\"color_temp\":550.entity_id,\",\")}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1430,"y":360,"wires":[["3861a7f384cd3e86"]]},{"id":"f9088194.9ff3a","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]