All thanks for your reaction this was help full and triggered me to some ideas. I solved on the following way
I check when the outcome of the ping is number this will reset stop timer.
When there is no number then and the timer expires it will trigger to close the roof of the observatory
my flow now
[{"id":"19e735e5.72fb2a","type":"link out","z":"7fa6be5b.eea368","name":"Watchdog-close-roof","links":["7bb68b00.56ea2c"],"x":995,"y":280,"wires":[]},{"id":"27ddda0e.ad3bc6","type":"ping","z":"7fa6be5b.eea368","mode":"timed","name":"internet 86.95.29.46","host":"8.8.8.8","timer":"60","inputs":0,"x":210,"y":380,"wires":[["8d157863.d0261","6d107a66.ebe14c","15fe46d7.4a2cd9"]]},{"id":"8d157863.d0261","type":"ui_text","z":"7fa6be5b.eea368","group":"cf41b0a7.a0c09","order":8,"width":4,"height":1,"name":"","label":"INTERNET:","format":"<font color= {{msg.color}} > {{msg.payload}} </font>","layout":"row-left","x":430,"y":320,"wires":[]},{"id":"6d107a66.ebe14c","type":"mqtt out","z":"7fa6be5b.eea368","name":"","topic":"/schoener/obs/monitoring/network/internet","qos":"","retain":"","broker":"d5b54be8.188b68","x":510,"y":380,"wires":[]},{"id":"b604171c.8646e8","type":"switch","z":"7fa6be5b.eea368","name":"Context based routing","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":840,"y":280,"wires":[["19e735e5.72fb2a"]]},{"id":"15fe46d7.4a2cd9","type":"switch","z":"7fa6be5b.eea368","name":"Is num ?","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"}],"checkall":"true","repair":false,"outputs":1,"x":420,"y":280,"wires":[["53106e23.359ce8"]]},{"id":"53106e23.359ce8","type":"stoptimer","z":"7fa6be5b.eea368","duration":"30","units":"Minute","payloadtype":"num","payloadval":"1","name":"","x":580,"y":280,"wires":[[],["b604171c.8646e8"]]},{"id":"cf41b0a7.a0c09","type":"ui_group","name":"Measurements","tab":"dd962aa5.a268f8","order":2,"disp":true,"width":"8","collapse":true},{"id":"d5b54be8.188b68","type":"mqtt-broker","name":"Remote","broker":"83.81.59.92","port":"18888","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"dd962aa5.a268f8","type":"ui_tab","name":"OCS","icon":"dashboard","disabled":false,"hidden":false}]
Thanks can for your support
Chris