Door Open Announcement

Hi, I am hoping someone can tell me what I am doing wrong.. I have 4 door sensor/contacts that I have currently being announce on my alexa devices when anyone of the door is opened. The announcements currently work but keeps repeating each door that is open when another door opens.

For example... If the front door opens it should announce that " Front door opened" If we leave the front door open, which is normally the case, and someone open the sliding door, it should announce that "sliding door opened". Currently what happens is it announces "sliding door open, front door open" I just want the announcement for each door at the time the doors open and not repeat if other doors are already open at the time a new door is opened. Hope this makes sense.

[{"id":"9a6783764fbe69a0","type":"tab","label":"Door Open Annoucement","disabled":false,"info":""},{"id":"d5bb5ec18c60046e","type":"ha-get-entities","z":"9a6783764fbe69a0","name":"Which Doors/Windows?","server":"6821cdda.fbbcd4","version":0,"rules":[{"property":"entity_id","logic":"in_group","value":"group.doors_sensors","valueType":"str"},{"property":"state","logic":"includes","value":"on, open","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":390,"y":340,"wires":[["b0d9d8700244580a"]]},{"id":"b0d9d8700244580a","type":"template","z":"9a6783764fbe69a0","name":"Format Msg","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.attributes.friendly_name}}opened","output":"str","x":590,"y":280,"wires":[["a9490daf6bb89c5a"]]},{"id":"a9490daf6bb89c5a","type":"join","z":"9a6783764fbe69a0","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":", ","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":770,"y":300,"wires":[["9c7a64ce4f9868bd"]]},{"id":"9c7a64ce4f9868bd","type":"api-call-service","z":"9a6783764fbe69a0","name":"set volume","server":"6821cdda.fbbcd4","version":3,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.man_cave_echo, media_player.living_room","data":"{\"volume_level\":0.5}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":830,"y":360,"wires":[["181313d415af9e47"]]},{"id":"c9bfdf46e745fe5d","type":"server-state-changed","z":"9a6783764fbe69a0","name":"Sliding Door","server":"6821cdda.fbbcd4","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.sliding_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":180,"wires":[["d5bb5ec18c60046e"]]},{"id":"7b454e0e0129ea63","type":"server-state-changed","z":"9a6783764fbe69a0","name":"Garage Door","server":"6821cdda.fbbcd4","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.garage","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":240,"wires":[["d5bb5ec18c60046e"]]},{"id":"05d2500ff3e4b366","type":"server-state-changed","z":"9a6783764fbe69a0","name":"Front Door","server":"6821cdda.fbbcd4","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.konnected_front_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":300,"wires":[["d5bb5ec18c60046e"]]},{"id":"7cf308dbc8670f06","type":"server-state-changed","z":"9a6783764fbe69a0","name":"Overhead Garage Door","server":"6821cdda.fbbcd4","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.gocontrol_garage_door_contact","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":360,"wires":[["d5bb5ec18c60046e"]]},{"id":"181313d415af9e47","type":"api-call-service","z":"9a6783764fbe69a0","name":"Notify via Mancave, Living Room Echo","server":"6821cdda.fbbcd4","version":3,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"tts\"},\"target\":[\"media_player.man_cave_echo\",\"media_player.living_room\"]}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":440,"wires":[[]]},{"id":"6821cdda.fbbcd4","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Is the join node needed? It is creating a string that just keeps appending new open contacts, try removing the join node.

Thank you for taking a look... I removed the join node but it stills announces all previously open door when a new door opens.

Then you will have to add debug nodes and show the incoming data for the 4 sensors. Set the debug to complete message object.

I note these are HA nodes and most here don't use them, you may get a better response on the HA forum.

Ok Thanks, Will try the HA forum for assistance.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.