In NR the easiest way would be to get the open windows using the get-entities nodes and then format them for the service call.
[{"id":"dc5bf993312e5015","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":186,"y":992,"wires":[["2aa68e6f8e599646"]]},{"id":"2aa68e6f8e599646","type":"ha-get-entities","z":"c89d915bdff0f798","name":"get open windows","server":"","version":1,"rules":[{"property":"state","logic":"is","value":"on","valueType":"str"},{"property":"entity_id","logic":"in_group","value":"binary_sensor.fenster","valueType":"str"}],"outputType":"array","outputEmptyResults":false,"outputLocationType":"msg","outputLocation":"payload","outputResultsCount":1,"x":378,"y":992,"wires":[["4ddf93b99f250ecb"]]},{"id":"4ddf93b99f250ecb","type":"split","z":"c89d915bdff0f798","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":558,"y":992,"wires":[["98ba6e6719bfa208"]]},{"id":"98ba6e6719bfa208","type":"template","z":"c89d915bdff0f798","name":"get friendly name","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.attributes.friendly_name}}","output":"str","x":730,"y":992,"wires":[["67c7313daab1c7e0"]]},{"id":"67c7313daab1c7e0","type":"join","z":"c89d915bdff0f798","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":", ","joinerType":"str","useparts":true,"accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":898,"y":992,"wires":[["89c320e74dc83fb4"]]},{"id":"89c320e74dc83fb4","type":"api-call-service","z":"c89d915bdff0f798","name":"","server":"","version":5,"debugenabled":false,"domain":"notify","service":"person","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"message\": \"It is raining and the following windows are open:\" & payload,\t \"data\": {\"image\": \"/local/media/rain.jpg\"}\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1050,"y":992,"wires":[[]]},{"id":"e75c30d5d1bd5986","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":188,"y":1040,"wires":[["41ef334d8bee6fb3"]]},{"id":"41ef334d8bee6fb3","type":"ha-get-entities","z":"c89d915bdff0f798","name":"get open windows","server":"","version":1,"rules":[{"property":"state","logic":"is","value":"on","valueType":"str"},{"property":"entity_id","logic":"in_group","value":"binary_sensor.fenster","valueType":"str"}],"outputType":"array","outputEmptyResults":false,"outputLocationType":"msg","outputLocation":"payload","outputResultsCount":1,"x":380,"y":1040,"wires":[["29bcdcaf951a615d"]]},{"id":"29bcdcaf951a615d","type":"api-call-service","z":"c89d915bdff0f798","name":"","server":"","version":5,"debugenabled":false,"domain":"notify","service":"person","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"message\": \"It is raining and the following windows are open: \" & $join(payload.attributes.friendly_name, \", \"),\t \"data\": {\"image\": \"/local/media/rain.jpg\"}\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":582,"y":1040,"wires":[[]]}]