Last active
December 29, 2023 15:38
-
-
Save jamespo/9a92f70bfae32dedfa2ab967bea16b76 to your computer and use it in GitHub Desktop.
Example fauxmo config for pi-hole - see https://www.webscalability.com/blog/2020/05/enable-or-disable-pi-hole-from-alexa/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"FAUXMO": { | |
"ip_address": "AUTO" | |
}, | |
"PLUGINS": { | |
"SimpleHTTPPlugin": { | |
"DEVICES": [ | |
{ | |
"port": 12340, | |
"off_cmd": "http://192.168.1.107/admin/api.php?disable=600&auth=YOUR_AUTH_CODE", | |
"on_cmd": "http://192.168.1.107/admin/api.php?enable&auth=YOUR_AUTH_CODE", | |
"method": "GET", | |
"name": "pi-hole", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"state_cmd": "http://192.168.1.107/admin/api.php?status&auth=YOUR_AUTH_CODE", | |
"state_response_on": "enabled", | |
"state_response_off": "disabled" | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment