For those of you that have a need for a somewhat full proof timer/counter with alexa integration, here ya go.
I have it set up for my medication but it could be used for anything.
The trigger is a door sensor on my medical case that sends an actionable notification to my phone if it is opened . Once i recieve the notification which asks "your med case just opened ,did you take a pill? If i select yes it fires the key “pill” back to home assistant where the timer and pills taken counter are fired and a new timer is started for whatever time you add to the “stop timer” node in node red. And well you can see what it does from there its pretty simple. I set up a Entities card in the frontend that has time started, time ended, pill count , pill counter reset, and pill counter manual increase for when i am out and away from my med case.
Enjoy!
Almost forgot!
You will need some custom nodes
Alexa Local
time compare and change
counter
countdown
and of course the home assistant node set that should be installed already if you are running node red inside home assistant.
[{"id":"d9a0b896.98af98","type":"server-state-changed","z":"6a4da553.3cba1c","name":"Mikes Case","server":"8883c5ea.5f6948","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mikes_case_2_2","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":90,"y":260,"wires":[["fd9f9893.ed4f68"]]},{"id":"fd9f9893.ed4f68","type":"switch","z":"6a4da553.3cba1c","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":230,"y":260,"wires":[["da2f4542.770b98"],[]]},{"id":"2d7a6ac8.15b426","type":"inject","z":"6a4da553.3cba1c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":220,"wires":[["da2f4542.770b98"]]},{"id":"2f20e8dc.a092a8","type":"comment","z":"6a4da553.3cba1c","name":"Med Reminder Response - Response and Subsequent actions to Med Reminder Notification above.","info":"When you send the mikes phone node message\nReplace \"accept_notification\" field with the message that \nyou want returned to hassio when you click the \"Accept notification\" button on your phone\nThen that gets ran through a switch and triggers whatever entity or event you want at home.\n\n \"actions\": [\n {\n \"action\": \"accept_notification\",\n \"title\": \"Accept notification?\"","x":360,"y":460,"wires":[]},{"id":"cd523699.87b4a8","type":"comment","z":"6a4da553.3cba1c","name":"Med Reminder Notification - Sent any time mikes case is opened.","info":"When you send the mikes phone node message\nReplace \"accept_notification\" field with the message that \nyou want returned to hassio when you click the \"Accept notification\" button on your phone\nThen that gets ran through a switch and triggers whatever entity or event you want at home.\n\n \"actions\": [\n {\n \"action\": \"accept_notification\",\n \"title\": \"Accept notification?\"","x":250,"y":160,"wires":[]},{"id":"adc58c08.30ab1","type":"alexa-local","z":"6a4da553.3cba1c","devicename":"Pill Information","inputtrigger":false,"x":80,"y":1200,"wires":[["f3f51644.a49948"]]},{"id":"f3f51644.a49948","type":"api-current-state","z":"6a4da553.3cba1c","name":"Med Timer Start Time","server":"8883c5ea.5f6948","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.pill_timer_time_started","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":300,"y":1200,"wires":[["418a9a93.1ed1a4"]]},{"id":"fb4fa696.971398","type":"inject","z":"6a4da553.3cba1c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":90,"y":1260,"wires":[["f3f51644.a49948"]]},{"id":"418a9a93.1ed1a4","type":"api-current-state","z":"6a4da553.3cba1c","name":"Last Alexa?","server":"8883c5ea.5f6948","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.last_alexa","state_type":"str","state_location":"data.state","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":510,"y":1200,"wires":[["84767da.f5aa58"]]},{"id":"84767da.f5aa58","type":"api-call-service","z":"6a4da553.3cba1c","name":"Alexa Speak -New TTS- not Announce - No Bell","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"","data":"{\"message\":\"{{payload}}\",\"title\":\"when did i take my meds\",\"data\":{\"type\":\"tts\",\"method\":\"all\"},\"target\":[\"{{data.state}}\"]}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":1200,"wires":[[]]},{"id":"68ba3fec.87e37","type":"comment","z":"6a4da553.3cba1c","name":"Ask alexa \"when did i take my meds? And she checks the Med Timer Start time node and reports the time to the last alexa spoken to.","info":"","x":440,"y":1140,"wires":[]},{"id":"49074fa2.57874","type":"comment","z":"6a4da553.3cba1c","name":"Testing Area","info":"","x":410,"y":2520,"wires":[]},{"id":"59ee5eea.61155","type":"inject","z":"6a4da553.3cba1c","name":"Manual Reset","props":[{"p":"payload.event.action","v":"pill_restart","vt":"str"},{"p":"payload.time_fired","v":"","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":790,"y":2700,"wires":[[]]},{"id":"acf45d47.84295","type":"inject","z":"6a4da553.3cba1c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":780,"y":2660,"wires":[[]]},{"id":"dc1e1ed9.c52aa","type":"debug","z":"6a4da553.3cba1c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":522,"y":2766.666748046875,"wires":[]},{"id":"87c05c0b.ddc93","type":"api-current-state","z":"6a4da553.3cba1c","name":"mikes case","server":"8883c5ea.5f6948","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.mikes_case_2_2","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":190,"y":2760,"wires":[[]]},{"id":"64553429.ae76fc","type":"inject","z":"6a4da553.3cba1c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":110,"y":2680,"wires":[["87c05c0b.ddc93"]]},{"id":"a8fa9dba.cfb67","type":"server-events","z":"6a4da553.3cba1c","name":"Pill Notify Reply","server":"8883c5ea.5f6948","event_type":"mobile_app_notification_action","exposeToHomeAssistant":true,"haConfig":[{"property":"name","value":"pill_notification"},{"property":"icon","value":""}],"waitForRunning":true,"x":100,"y":780,"wires":[["16f3ce9b.a747d1"]]},{"id":"3a526b08.3e9894","type":"simpletime","z":"6a4da553.3cba1c","name":"Multiple Forms of Time Date Output","x":515,"y":640,"wires":[["acc1667d.26f1c8"]],"l":false},{"id":"acc1667d.26f1c8","type":"time-comp","z":"6a4da553.3cba1c","outputs":1,"name":"Time Conversion From Military","positionConfig":"cf4bfd8.c0a73","input":"mytimes","inputType":"msg","inputFormat":"98","inputOffset":0,"inputOffsetType":"none","inputOffsetMultiplier":60000,"rules":[],"checkall":"true","result1":"","result1Type":"msgPayload","result1Value":"","result1ValueType":"input","result1Format":"3","result1Offset":0,"result1OffsetType":"none","result1OffsetMultiplier":60000,"x":555,"y":640,"wires":[["d997f603.1c1858"]],"l":false},{"id":"d506c087.56067","type":"countdown","z":"6a4da553.3cba1c","name":"","topic":"","payloadTimerStart":"Pill Timer Started","payloadTimerStartType":"str","payloadTimerStop":"Pill Timer Ended","payloadTimerStopType":"str","timer":"21600","resetWhileRunning":true,"setTimeToNewWhileRunning":true,"startCountdownOnControlMessage":true,"x":315,"y":780,"wires":[["bfbf517c.1bd85"],["ce39452a.02d7b8"]],"l":false},{"id":"4b09d666.518eb8","type":"ha-entity","z":"6a4da553.3cba1c","name":"Pill Timer Remaining Time","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"pill_timer_time_remaining"},{"property":"device_class","value":"time"},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":710,"y":840,"wires":[[]]},{"id":"93e4941c.43b738","type":"ha-entity","z":"6a4da553.3cba1c","name":"Pill Timer End Time","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"pill_timer_time_ended"},{"property":"device_class","value":"time"},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":790,"y":700,"wires":[[]]},{"id":"d997f603.1c1858","type":"ha-entity","z":"6a4da553.3cba1c","name":"Pill Timer Start Time","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"pill_timer_time_started"},{"property":"device_class","value":"time"},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":800,"y":640,"wires":[[]]},{"id":"9ccaa9ad.d712c8","type":"simpletime","z":"6a4da553.3cba1c","name":"Multiple Forms of Time Date Output","x":515,"y":700,"wires":[["c7665704.aeede8"]],"l":false},{"id":"c7665704.aeede8","type":"time-comp","z":"6a4da553.3cba1c","outputs":1,"name":"Time Conversion From Military","positionConfig":"cf4bfd8.c0a73","input":"mytimes","inputType":"msg","inputFormat":"98","inputOffset":0,"inputOffsetType":"none","inputOffsetMultiplier":60000,"rules":[],"checkall":"true","result1":"","result1Type":"msgPayload","result1Value":"","result1ValueType":"input","result1Format":"3","result1Offset":0,"result1OffsetType":"none","result1OffsetMultiplier":60000,"x":555,"y":700,"wires":[["93e4941c.43b738"]],"l":false},{"id":"16f3ce9b.a747d1","type":"switch","z":"6a4da553.3cba1c","name":"pill - no_pill","property":"payload.event.action","propertyType":"msg","rules":[{"t":"eq","v":"pill","vt":"str"},{"t":"eq","v":"pill_restart","vt":"str"},{"t":"eq","v":"no_pill","vt":"str"},{"t":"eq","v":"pill_test","vt":"str"},{"t":"eq","v":"pill_restart_test","vt":"str"},{"t":"eq","v":"no_pill_taken-test","vt":"str"},{"t":"eq","v":"reset","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":215,"y":780,"wires":[[],[],[],["d506c087.56067"],["d506c087.56067"],[],["d506c087.56067"]],"l":false},{"id":"5a456b18.46ef14","type":"counter","z":"6a4da553.3cba1c","name":"Pill Counter","init":"0","step":"1","lower":null,"upper":"6","mode":"increment","outputs":2,"x":570,"y":580,"wires":[["cd4e9904.22e6e8","dee3462c.670378"],[]]},{"id":"cd4e9904.22e6e8","type":"ha-entity","z":"6a4da553.3cba1c","name":"Pill Counter ","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"pill_counter"},{"property":"device_class","value":""},{"property":"icon","value":"mdi:pill"},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":770,"y":540,"wires":[[]]},{"id":"cf1c02b0.605a2","type":"api-call-service","z":"6a4da553.3cba1c","name":"Notify-Time for Pill","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_mike_phone","entityId":"","data":"{\"title\":\"Med Alert\",\"message\":\"Time to take your meds, you last took them at {{ states('sensor.pill_timer_time_started') }}\",\"data\":{\"priority\":\"high\",\"ttl\":0,\"color\":\"red\",\"actions\":[{\"action\":\"pill_restart_test\",\"title\":\"Restart Med Timer?\"},{\"action\":\"no_restart_test\",\"title\":\"No\"}]}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":true,"x":590,"y":760,"wires":[[]]},{"id":"bfbf517c.1bd85","type":"switch","z":"6a4da553.3cba1c","name":"Time to take a pill","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Pill Timer Started","vt":"str"},{"t":"eq","v":"Pill Timer Ended","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":395,"y":660,"wires":[["3a526b08.3e9894","5a456b18.46ef14"],["cf1c02b0.605a2","9ccaa9ad.d712c8"]],"l":false},{"id":"682b9c31.a9c364","type":"server-state-changed","z":"6a4da553.3cba1c","name":"Pill Counter Reset","server":"8883c5ea.5f6948","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.pill_counter_reset","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":720,"wires":[["a120d0e6.1a393"],[]]},{"id":"20aecfef.54241","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":515,"y":540,"wires":[["5a456b18.46ef14"]],"l":false},{"id":"ba1c15e5.78a8c8","type":"api-call-service","z":"6a4da553.3cba1c","name":"Pill Counter reset OFF","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.pill_counter_reset","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":155,"y":680,"wires":[["20aecfef.54241"]],"l":false},{"id":"69e101e7.3d4c3","type":"delay","z":"6a4da553.3cba1c","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":115,"y":680,"wires":[["ba1c15e5.78a8c8"]],"l":false},{"id":"a120d0e6.1a393","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":75,"y":680,"wires":[["69e101e7.3d4c3"]],"l":false},{"id":"dee3462c.670378","type":"switch","z":"6a4da553.3cba1c","name":"","property":"countUpperLimitReached","propertyType":"msg","rules":[{"t":"cont","v":"true","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":615,"y":540,"wires":[["20aecfef.54241"],[]],"l":false},{"id":"5203585c.2fdf28","type":"server-state-changed","z":"6a4da553.3cba1c","name":"Pill Counter Man Increase","server":"8883c5ea.5f6948","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.med_counter_manual_increase","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":130,"y":620,"wires":[["d7384ff2.cde74"],[]]},{"id":"7c1b75e2.7a406c","type":"api-call-service","z":"6a4da553.3cba1c","name":"Pill Counter reset OFF","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.med_counter_manual_increase","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":155,"y":580,"wires":[["5a456b18.46ef14"]],"l":false},{"id":"5271a2f9.80befc","type":"delay","z":"6a4da553.3cba1c","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":115,"y":580,"wires":[["7c1b75e2.7a406c"]],"l":false},{"id":"d7384ff2.cde74","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":75,"y":580,"wires":[["5271a2f9.80befc"]],"l":false},{"id":"17cb9725.eca5d9","type":"server-state-changed","z":"6a4da553.3cba1c","name":"Med Timer Manual Reset","server":"8883c5ea.5f6948","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.med_timer_manual_reset","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":130,"y":940,"wires":[["93e8db2f.e13908","e8ef3ea7.9adcf"],[]]},{"id":"2c9417d9.a2cac8","type":"api-call-service","z":"6a4da553.3cba1c","name":"Med Timer Manual reset OFF","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.med_timer_manual_reset","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":135,"y":900,"wires":[[]],"l":false},{"id":"28c65e28.0ac092","type":"delay","z":"6a4da553.3cba1c","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":95,"y":900,"wires":[["2c9417d9.a2cac8"]],"l":false},{"id":"93e8db2f.e13908","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":55,"y":900,"wires":[["28c65e28.0ac092"]],"l":false},{"id":"e8ef3ea7.9adcf","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":215,"y":900,"wires":[["d506c087.56067"]],"l":false},{"id":"da2f4542.770b98","type":"api-call-service","z":"6a4da553.3cba1c","name":"Notify-Med Notification","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_mike_phone","entityId":"","data":"{\"title\":\"Med Alert\",\"message\":\"Your case just opened, did you take a pill? Last Taken: {{ states('sensor.pill_timer_time_started') }} Pill Count: {{ states('sensor.pill_counter') }} \",\"data\":{\"priority\":\"high\",\"ttl\":0,\"color\":\"red\",\"actions\":[{\"action\":\"pill_test\",\"title\":\"Yes\"},{\"action\":\"no_pill_taken-test\",\"title\":\"No\"}]}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":true,"x":400,"y":240,"wires":[[]]},{"id":"e6b1f8b5.ac6328","type":"moment","z":"6a4da553.3cba1c","name":"moment time formatter node","topic":"","input":"payload","inputType":"msg","inTz":"ETC/GMT","adjAmount":0,"adjType":"days","adjDir":"add","format":"hh:mm:ss","locale":"en_GB","output":"payload","outputType":"msg","outTz":"ETC/GMT","x":495,"y":820,"wires":[["4b09d666.518eb8"]],"l":false},{"id":"ce39452a.02d7b8","type":"change","z":"6a4da553.3cba1c","name":"To millisecs","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload*1000","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":455,"y":820,"wires":[["e6b1f8b5.ac6328"]],"l":false},{"id":"2d7d5534.e6b4da","type":"server-state-changed","z":"6a4da553.3cba1c","name":"Pill Timer Manual Stop","server":"8883c5ea.5f6948","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.pill_timer_man_stop","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":120,"y":1040,"wires":[["ac7e27e6.154238","376ff65f.07769a"]]},{"id":"6c99dab5.800c34","type":"api-call-service","z":"6a4da553.3cba1c","name":"Med Timer Manual stop off","server":"8883c5ea.5f6948","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.pill_timer_man_stop","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":185,"y":1000,"wires":[[]],"l":false},{"id":"32073223.b6b8ce","type":"delay","z":"6a4da553.3cba1c","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":145,"y":1000,"wires":[["6c99dab5.800c34"]],"l":false},{"id":"ac7e27e6.154238","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":105,"y":1000,"wires":[["32073223.b6b8ce"]],"l":false},{"id":"376ff65f.07769a","type":"change","z":"6a4da553.3cba1c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1040,"wires":[["d506c087.56067"]],"l":false},{"id":"8883c5ea.5f6948","type":"server","name":"HA Main","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true},{"id":"cf4bfd8.c0a73","type":"position-config","name":"Pauls Valley","isValide":"true","longitude":"0","latitude":"0","angleType":"deg","timeZoneOffset":99,"timeZoneDST":0,"stateTimeFormat":"3","stateDateFormat":"12"}]