[{"id":"798d1dba.23cc4c","type":"stoptimer","z":"9ea4ccf5.ca15b","duration":"1","units":"Second","payloadtype":"num","payloadval":"stop","name":"5 Minutes","x":780,"y":180,"wires":[["92e82a74.b3fbb"],["11530369.1bb21d"]]},{"id":"ee0050b8.edc618","type":"change","z":"9ea4ccf5.ca15b","name":"Stop Timer","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":360,"wires":[[]]},{"id":"10820c2.ce48bf4","type":"api-call-service","z":"9ea4ccf5.ca15b","name":"Turn Off Thermostats","server":"f22f6e73.21e16","version":3,"debugenabled":false,"service_domain":"climate","service":"turn_off","entityId":"climate.salon","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1100,"y":80,"wires":[["4df73d37.9ea43c"]]},{"id":"4df73d37.9ea43c","type":"ha-get-entities","z":"9ea4ccf5.ca15b","name":"Which Doors/Windows?","server":"f22f6e73.21e16","version":0,"rules":[{"property":"entity_id","logic":"in_group","value":"group.salon_door_and_window_sensors","valueType":"str"},{"property":"state","logic":"includes","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":1370,"y":80,"wires":[["6ba1bfee.900dc8","c4cdf582.d8a768"]]},{"id":"6ba1bfee.900dc8","type":"template","z":"9ea4ccf5.ca15b","name":"Format Msg","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.attributes.friendly_name}}","output":"str","x":1610,"y":80,"wires":[["9bfc35b6.cb662"]]},{"id":"9bfc35b6.cb662","type":"join","z":"9ea4ccf5.ca15b","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":1810,"y":80,"wires":[["28f4a7b5.e5d978"]]},{"id":"2c99162a.dc758a","type":"ha-get-entities","z":"9ea4ccf5.ca15b","name":"Salon Doors/Windows?","server":"f22f6e73.21e16","version":0,"rules":[{"property":"entity_id","logic":"in_group","value":"group.salon_door_and_window_sensors","valueType":"str"},{"property":"state","logic":"includes","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":390,"y":200,"wires":[["443104b4.db016c"]]},{"id":"5aa7e75b.db2338","type":"server-state-changed","z":"9ea4ccf5.ca15b","name":"AC salon ON ?","server":"f22f6e73.21e16","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"climate.salon","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"heat_cool","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,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":100,"wires":[["2c99162a.dc758a"],[]]},{"id":"28f4a7b5.e5d978","type":"api-call-service","z":"9ea4ccf5.ca15b","name":"Sed Notify yuval Phone","server":"f22f6e73.21e16","version":3,"debugenabled":false,"service_domain":"notify","service":"mobile_app_sm_a705fn","entityId":"","data":"{ \"message\": \"{{payload}}\" }","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":2010,"y":80,"wires":[[]]},{"id":"22a06839.db251","type":"comment","z":"9ea4ccf5.ca15b","name":"Notifications if Open Windows - ac salon ","info":"","x":200,"y":40,"wires":[]},{"id":"89eb1f3a.7b959","type":"api-current-state","z":"9ea4ccf5.ca15b","name":"climate.salon","server":"f22f6e73.21e16","version":2,"outputs":2,"halt_if":"cool,heat,fan_only","halt_if_type":"num","halt_if_compare":"is","entity_id":"climate.salon","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":130,"y":180,"wires":[[],[]]},{"id":"1e0af6cd.fdd1b1","type":"api-current-state","z":"9ea4ccf5.ca15b","name":"Ac_Check_open_or_closed","server":"f22f6e73.21e16","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.openclose_11","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":400,"y":100,"wires":[["2c99162a.dc758a"],[]]},{"id":"46ddc9.114fe238","type":"inject","z":"9ea4ccf5.ca15b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"on","payload":"","payloadType":"date","x":170,"y":280,"wires":[["2c99162a.dc758a"]]},{"id":"c4cdf582.d8a768","type":"api-call-service","z":"9ea4ccf5.ca15b","name":"Announce Family Room","server":"f22f6e73.21e16","version":3,"debugenabled":false,"service_domain":"notify","service":"alexa_media_yuval_s_echo","entityId":"","data":"{\"message\":\"{{payload.attributes.friendly_name}}\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1610,"y":180,"wires":[[]]},{"id":"443104b4.db016c","type":"switch","z":"9ea4ccf5.ca15b","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":200,"wires":[["798d1dba.23cc4c"],["ee0050b8.edc618"]]},{"id":"11530369.1bb21d","type":"api-current-state","z":"9ea4ccf5.ca15b","name":"IS Close ? send Notification ","server":"f22f6e73.21e16","version":2,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"group.salon_door_and_window_sensors","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"data","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":820,"y":260,"wires":[[],[]]},{"id":"92e82a74.b3fbb","type":"api-current-state","z":"9ea4ccf5.ca15b","name":"IS Open - send Notification ","server":"f22f6e73.21e16","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"group.salon_door_and_window_sensors","state_type":"str","blockInputOverrides":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":820,"y":80,"wires":[["10820c2.ce48bf4"],[]]},{"id":"f22f6e73.21e16","type":"server","name":"yuval_Home Assistant","version":1,"legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
I did the following thing, but it does not work really well for me …
Alexa says some window or door is open which is great but time does not work well.
can you help…
I want
- Air conditioner door - a message is received from an open window.
- After 5 minutes if I did not close the window another message.
- A message is received telling me why the air conditioner is turned off because of a window or door and which.