This flow will satisfy the first example
[{"id":"939764ab.2f4dc8","type":"inject","z":"d6a46901.ebee1","name":"Set timer value","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"not_home","payloadType":"str","x":120,"y":1300,"wires":[["7b41913f.999eb"]]},{"id":"67884340.a8a354","type":"inject","z":"d6a46901.ebee1","name":"inject every second","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"dec","payloadType":"msg","x":140,"y":1500,"wires":[["9fcc8661.0c9908"]]},{"id":"6ad0c657.01c14","type":"api-call-service","z":"d6a46901.ebee1","name":"","server":"","version":1,"debugenabled":true,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.boo","data":"","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1120,"y":1400,"wires":[[]]},{"id":"6356c186.321d7","type":"switch","z":"d6a46901.ebee1","name":"","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"count","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":1280,"wires":[["20bca88.5d7f958"],[]]},{"id":"20bca88.5d7f958","type":"change","z":"d6a46901.ebee1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":1340,"wires":[["6ad0c657.01c14"]]},{"id":"5f293e4b.789cb","type":"group","z":"d6a46901.ebee1","name":"","style":{"stroke":"#0070c0","label":true},"nodes":["fcab385e.4e18a","7b41913f.999eb","ad753071.423ab"],"x":34,"y":1119,"w":572,"h":122},{"id":"fcab385e.4e18a","type":"server-state-changed","z":"d6a46901.ebee1","g":"5f293e4b.789cb","name":"","server":"","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.mike_fila","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"home","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,"x":190,"y":1200,"wires":[[],["7b41913f.999eb"]]},{"id":"7b41913f.999eb","type":"change","z":"d6a46901.ebee1","g":"5f293e4b.789cb","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"set","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"172800","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1200,"wires":[["360705a9.6994ca"]]},{"id":"ad753071.423ab","type":"comment","z":"d6a46901.ebee1","g":"5f293e4b.789cb","name":"Resets timer when not home. Set timer in change node.","info":"","x":340,"y":1160,"wires":[]},{"id":"a37b95af.a38e78","type":"group","z":"d6a46901.ebee1","name":"","style":{"stroke":"#0070c0","label":true},"nodes":["360705a9.6994ca","6a773bf1.56a704"],"x":734,"y":1119,"w":532,"h":122},{"id":"360705a9.6994ca","type":"function","z":"d6a46901.ebee1","g":"a37b95af.a38e78","name":"counter","func":"var count = context.get(\"timer\");\n\nif(msg.topic == \"reset\" || msg.reset == true) {\n count = 55000000;\n} else if (msg.topic == \"set\") {\n count = msg.payload;\n} else if (msg.topic == \"increment\" || msg.topic == \"inc\") {\n count += 1;\n} else {\n //assume decrement\n count -= 1;\n}\ncontext.set(\"timer\", count); //store it\nnode.status({ text: count });\n\nmsg.count = count; //pass current count in msg.count\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":775,"y":1200,"wires":[["6356c186.321d7"]],"icon":"node-red-dashboard/ui_numeric.png","l":false},{"id":"6a773bf1.56a704","type":"comment","z":"d6a46901.ebee1","g":"a37b95af.a38e78","name":"For each timer create a different name. Replace \"timer\" in 2 locations","info":"","x":1000,"y":1160,"wires":[]},{"id":"dd4736f9.2429d8","type":"group","z":"d6a46901.ebee1","style":{"stroke":"#2b2b2b","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["9fcc8661.0c9908","473f53f4.f714b4","f6d9250c.ffb5e"],"x":174,"y":1339,"w":632,"h":122},{"id":"9fcc8661.0c9908","type":"api-current-state","z":"d6a46901.ebee1","g":"dd4736f9.2429d8","name":"","server":"","version":1,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"person.mike_fila","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":330,"y":1420,"wires":[["473f53f4.f714b4"],[]]},{"id":"473f53f4.f714b4","type":"api-current-state","z":"d6a46901.ebee1","g":"dd4736f9.2429d8","name":"","server":"","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.boo","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":640,"y":1420,"wires":[["360705a9.6994ca"],[]]},{"id":"f6d9250c.ffb5e","type":"comment","z":"d6a46901.ebee1","g":"dd4736f9.2429d8","name":"Stops timer countdown if person home and/or input boolean turned on","info":"","x":470,"y":1380,"wires":[]}]