The nodes im using is Home assistant nodes
Now I got this flow working, when I open the door the message comes in my sonos and google nest
all I need is the TTS to repeat with 5 sec delay between until the door is closed
[{"id":"487d5e53.aeaff","type":"inject","z":"b2502674.296df8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":1140,"wires":[["9cf8c480.b237d8"]]},{"id":"d733f64.68fea08","type":"server-state-changed","z":"b2502674.296df8","name":"","server":"c215ffdf.5f364","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.openclose_21","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":190,"y":1180,"wires":[["9cf8c480.b237d8"],["3107f0.44c8881"]]},{"id":"9cf8c480.b237d8","type":"api-call-service","z":"b2502674.296df8","name":"","server":"c215ffdf.5f364","version":1,"debugenabled":false,"service_domain":"sonos","service":"snapshot","entityId":"media_player.spisestue1","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":460,"y":1120,"wires":[["2184ca40.267cb6"]]},{"id":"2184ca40.267cb6","type":"api-call-service","z":"b2502674.296df8","name":"","server":"c215ffdf.5f364","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.spisestue1","data":"{\"entity_id\":\"media_player.spisestue1\",\"volume_level\":\"0.5\"}","dataType":"json","mergecontext":"50","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":1120,"wires":[["efcba26d.d86d"]]},{"id":"3107f0.44c8881","type":"api-call-service","z":"b2502674.296df8","name":"","server":"c215ffdf.5f364","version":1,"debugenabled":false,"service_domain":"sonos","service":"restore","entityId":"media_player.spisestue1","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":490,"y":1200,"wires":[[]]},{"id":"d174397e.a6ad98","type":"debug","z":"b2502674.296df8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":1120,"wires":[]},{"id":"efcba26d.d86d","type":"api-call-service","z":"b2502674.296df8","name":"message","server":"c215ffdf.5f364","version":1,"debugenabled":false,"service_domain":"tts","service":"cloud_say","entityId":"media_player.spisestue1, media_player.badevaerelse_2","data":"{\"entity_id\":\"media_player.spisestue1,media_player.badevaerelse_2\",\"message\":\"bryggersdøren er åben\",\"language\":\"da-DK\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":1120,"wires":[["d174397e.a6ad98"]]},{"id":"c215ffdf.5f364","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]