Pi-Hole is a very nice application the removes a huge amount of advertisement from your webpages and other applications.
Running on a Raspberry pi it's a simple and cheap solution.
But sometimes you want to click on the advertisements after a google search. For this moment you need to disable Pi-hole for a short moment. This disabling is possible from the Pi-hole dashboard, but also from within the Nr-dashboard with this simple flow.
[{"id":"8210d6d0.3a93c8","type":"http request","z":"93b486a5.9a296","name":"DisableFor5m","method":"PUT","ret":"txt","paytoqs":false,"url":"http://192.168.1.250/admin/api.php?disable=300&auth=a474668aa050ccf1e076f3c796f21f9ab574361e9ff3873a5b3266","tls":"","persist":false,"proxy":"","authType":"","x":580,"y":220,"wires":[["8646d7dc.1bf01"]]},{"id":"21a8d434.ec58f4","type":"ui_button","z":"93b486a5.9a296","name":"","group":"c568498a.6b63f","order":0,"width":"4","height":"2","passthru":false,"label":"{{payload}}","tooltip":"","color":"","bgcolor":"{{backcolor}}","icon":"","payload":"a","payloadType":"str","topic":"","x":370,"y":220,"wires":[["8210d6d0.3a93c8"]]},{"id":"1e7dd7b1.23397","type":"inject","z":"93b486a5.9a296","name":"","topic":"","payload":"","payloadType":"date","repeat":"30","crontab":"","once":true,"onceDelay":0.1,"x":350,"y":320,"wires":[["4747ac1a.e5eec4"]]},{"id":"4747ac1a.e5eec4","type":"http request","z":"93b486a5.9a296","name":"CheckStatus","method":"PUT","ret":"txt","paytoqs":false,"url":"http://192.168.1.250/admin/api.php?status","tls":"","persist":false,"proxy":"","authType":"","x":570,"y":320,"wires":[["16c6b875.611e8"]]},{"id":"16c6b875.611e8","type":"json","z":"93b486a5.9a296","name":"","property":"payload","action":"","pretty":false,"x":770,"y":320,"wires":[["51905b8b.ffe9ac"]]},{"id":"51905b8b.ffe9ac","type":"switch","z":"93b486a5.9a296","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"disabled","vt":"str"},{"t":"eq","v":"enabled","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":320,"wires":[["d3656120.8d202"],["aad3fea3.bd8df8"]]},{"id":"d3656120.8d202","type":"change","z":"93b486a5.9a296","name":"SetOrange","rules":[{"t":"set","p":"backcolor","pt":"msg","to":"orange","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"PiHole Disabled","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":300,"wires":[["21a8d434.ec58f4"]]},{"id":"aad3fea3.bd8df8","type":"change","z":"93b486a5.9a296","name":"SetDefault","rules":[{"t":"set","p":"backcolor","pt":"msg","to":"","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"Disable Pihole","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":340,"wires":[["21a8d434.ec58f4"]]},{"id":"8646d7dc.1bf01","type":"delay","z":"93b486a5.9a296","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":780,"y":220,"wires":[["4747ac1a.e5eec4"]]},{"id":"8fde4cc9.9ed9c8","type":"comment","z":"93b486a5.9a296","name":"Disable Pi-hole for 5minuts","info":"","x":370,"y":160,"wires":[]},{"id":"c568498a.6b63f","type":"ui_group","z":"","name":"PiHole","tab":"cb1110e8.87fd1","disp":true,"width":"4","collapse":false},{"id":"cb1110e8.87fd1","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1}]
In the HTTP request node you have to change the IP address to you Pi-hole server address. Here you can also change the duration in seconds.
For the authenticaion you need to fill in your Pi-hole password, you can find it in your /etc/pihole/setupVars.conf file.
Copy the data from the WEBPASSWORD line.