Hi, sorry for necroposting but I’m trying to import this flow and there are some error. Do you mind to share it again?
Peronally, I try to avoid NodeRed as much as possible—it’s another component that could introduce errors (though it can be helpful).
I’d suggest using an alert
. Since many of us don’t seem to know how to make a TTS notifier (we don’t have built-ins), I did a little write-up yesterday:
So now you have a TTS notify, using an alert seems very easy, because you can adjust repetitions, and cancel it. Good luck!
Then again, the smallest repetition would be a minute, so it might not help if you really want 2 seconds …
[{"id":"ef8fd144.9e0f5","type":"server-state-changed","z":"900c9e0a.5241d","name":"Back Door","server":"80018a0a.5e7a38","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.door_back","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":160,"y":1840,"wires":[["162ccfbf.af9c3","5e9e75bc.fd502c"]],"icon":"node-red/light.png"},{"id":"6e8e07db.d6eff","type":"api-call-service","z":"900c9e0a.5241d","name":"Android","server":"80018a0a.5e7a38","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_note_10","entityId":"","data":"{\"message\":\"Back Door is Opened\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1140,"y":1820,"wires":[[]]},{"id":"162ccfbf.af9c3","type":"time-range-switch","z":"900c9e0a.5241d","name":"","lat":"42.24013","lon":"-71.01411","startTime":"08:00","endTime":"17:00","startOffset":0,"endOffset":0,"x":380,"y":1840,"wires":[["f35e4090.256f1"],[]]},{"id":"f35e4090.256f1","type":"api-current-state","z":"900c9e0a.5241d","name":"Back Door Open","server":"80018a0a.5e7a38","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.back_door","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":610,"y":1840,"wires":[["d34017ed.b5f608"]]},{"id":"d34017ed.b5f608","type":"looptimer","z":"900c9e0a.5241d","duration":"2","units":"Second","maxloops":"5","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":880,"y":1840,"wires":[["6e8e07db.d6eff","de7eca6d.088ac"],[]]},{"id":"de7eca6d.088ac","type":"api-call-service","z":"900c9e0a.5241d","name":"Echo Show","server":"80018a0a.5e7a38","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_echo_show","entityId":"","data":"{\"message\":\"Back Door is Opened\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":1880,"wires":[[]]},{"id":"5e9e75bc.fd502c","type":"time-range-switch","z":"900c9e0a.5241d","name":"","lat":"42.24013","lon":"-71.01411","startTime":"17:00","endTime":"08:00","startOffset":0,"endOffset":0,"x":360,"y":2020,"wires":[["569472db.4fe1ac"],[]]},{"id":"569472db.4fe1ac","type":"stoptimer","z":"900c9e0a.5241d","duration":"1","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":600,"y":2020,"wires":[["cf47264c.786d5"],[]]},{"id":"120abbc5.8e171c","type":"delay","z":"900c9e0a.5241d","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":820,"y":1940,"wires":[["cf47264c.786d5","dbd50073.454da"]]},{"id":"cf47264c.786d5","type":"api-current-state","z":"900c9e0a.5241d","name":"Back Door Still Open","server":"80018a0a.5e7a38","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.back_door","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":840,"y":2020,"wires":[["120abbc5.8e171c","e4c00a9e.9ed2a8","575741dd.70195"]]},{"id":"e4c00a9e.9ed2a8","type":"delay","z":"900c9e0a.5241d","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":840,"y":2080,"wires":[["cf47264c.786d5"]]},{"id":"dbd50073.454da","type":"api-call-service","z":"900c9e0a.5241d","name":"Android","server":"80018a0a.5e7a38","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_note_10","entityId":"","data":"{\"message\":\"Back Door is still Opened after 5 minutes\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1160,"y":1940,"wires":[[]]},{"id":"575741dd.70195","type":"api-call-service","z":"900c9e0a.5241d","name":"Echo Show","server":"80018a0a.5e7a38","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_echo_show","entityId":"","data":"{\"message\":\"Back Door is still Opened after 5 minutes\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":2020,"wires":[[]]},{"id":"80018a0a.5e7a38","type":"server","z":"","name":"Home Assistant","legacy":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
1 Like
Thank you very much!