Skip to content

Instantly share code, notes, and snippets.

@jamespo
Last active December 29, 2023 15:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jamespo/9a92f70bfae32dedfa2ab967bea16b76 to your computer and use it in GitHub Desktop.
Save jamespo/9a92f70bfae32dedfa2ab967bea16b76 to your computer and use it in GitHub Desktop.
{
"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