HA App/Node Red Snooze Logic Help Needed

[{"id":"ca12bfe5f6b9a409","type":"tab","label":"Blood Sugar","disabled":false,"info":""},{"id":"f2ba38716f92da04","type":"switch","z":"ca12bfe5f6b9a409","name":"BG Number Switch","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"69","vt":"str"},{"t":"btwn","v":"70","vt":"num","v2":"190","v2t":"num"},{"t":"gte","v":"191","vt":"str"}],"checkall":"false","repair":false,"outputs":3,"x":150,"y":300,"wires":[["b4db016603755ac6","e917067c97946fd1","5c4832e208dee618"],["30573486fdf7dedf"],[]]},{"id":"92d384acec7c2de9","type":"poll-state","z":"ca12bfe5f6b9a409","name":"","server":"3f424685.7efa4a","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"5","updateIntervalUnits":"minutes","outputinitially":true,"outputonchanged":true,"entity_id":"sensor.blood_sugar","state_type":"num","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":140,"y":60,"wires":[["68d318d58d15d563","2fcb4e82057b0ad9"]]},{"id":"68d318d58d15d563","type":"debug","z":"ca12bfe5f6b9a409","name":"BG","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":430,"y":100,"wires":[]},{"id":"b4db016603755ac6","type":"change","z":"ca12bfe5f6b9a409","name":"Confirm Low BG","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":280,"wires":[["14f0c044a0add32f"]]},{"id":"14f0c044a0add32f","type":"http request","z":"ca12bfe5f6b9a409","name":"LowBGIFTTT","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://maker.ifttt.com/trigger/LowNow/with/key/hJmE0EMlsC86q_hMxelOkqsc-p4jx0nMP478oWIhJts","tls":"","persist":false,"proxy":"","authType":"","x":630,"y":280,"wires":[[]]},{"id":"30573486fdf7dedf","type":"change","z":"ca12bfe5f6b9a409","name":"Confirm In Range BG","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":340,"wires":[["791a03ab5b8219b2"]]},{"id":"791a03ab5b8219b2","type":"http request","z":"ca12bfe5f6b9a409","name":"InRangeIFTTT","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://maker.ifttt.com/trigger/InRange/with/key/hJmE0EMlsC86q_hMxelOkqsc-p4jx0nMP478oWIhJts","tls":"","persist":false,"proxy":"","authType":"","x":660,"y":340,"wires":[[]]},{"id":"5c4832e208dee618","type":"api-call-service","z":"ca12bfe5f6b9a409","name":"Phone Notification","server":"3f424685.7efa4a","version":3,"debugenabled":true,"service_domain":"notify","service":"mobile_app_k8s_iphone","entityId":"","data":"{\"message\":\"Low BG Detected\",\"title\":\"Urgent Low\",\"data\":{\"actions\":[{\"action\":\"SNOOZE\",\"title\":\"Treated\"}]}}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":220,"wires":[[]]},{"id":"bfdb5c127815c693","type":"switch","z":"ca12bfe5f6b9a409","name":"SnoozeSwitch","property":"payload.event.action","propertyType":"msg","rules":[{"t":"eq","v":"SNOOZE","vt":"str"},{"t":"eq","v":"","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":460,"wires":[["77afcf4e3d1bdddc"],[]]},{"id":"49ec7053407830bb","type":"delay","z":"ca12bfe5f6b9a409","name":"Snooze30","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":760,"y":460,"wires":[[]]},{"id":"af7cfef91047cc94","type":"server-events","z":"ca12bfe5f6b9a409","name":"Snoozed","server":"3f424685.7efa4a","version":1,"event_type":"mobile_app_notification_action","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":80,"y":460,"wires":[["ecece750b9fb65fd","bfdb5c127815c693"]]},{"id":"ecece750b9fb65fd","type":"debug","z":"ca12bfe5f6b9a409","name":"snoozed","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":300,"y":520,"wires":[]},{"id":"2fcb4e82057b0ad9","type":"time-range-switch","z":"ca12bfe5f6b9a409","name":"Night","lat":"","lon":"","startTime":"5:00","endTime":"24:00","startOffset":0,"endOffset":0,"x":130,"y":160,"wires":[["f2ba38716f92da04"],[]]},{"id":"77afcf4e3d1bdddc","type":"http request","z":"ca12bfe5f6b9a409","name":"InRangeIFTTT","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://maker.ifttt.com/trigger/InRange/with/key/hJmE0EMlsC86q_hMxelOkqsc-p4jx0nMP478oWIhJts","tls":"","persist":false,"proxy":"","authType":"","x":520,"y":460,"wires":[["49ec7053407830bb"]]},{"id":"e917067c97946fd1","type":"api-call-service","z":"ca12bfe5f6b9a409","name":"Alexa Notification","server":"3f424685.7efa4a","version":3,"debugenabled":false,"service_domain":"script","service":"low_bg","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":160,"wires":[[]]},{"id":"da0f188dbd8bdcb9","type":"comment","z":"ca12bfe5f6b9a409","name":"If Snooze message received from HA App, turn off light and snooze for 30 mins.","info":"If Snooze message received from HA App, turn off light and snooze for 30 mins.","x":420,"y":420,"wires":[]},{"id":"3f424685.7efa4a","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
/r/homeassistant Thread