Skip to content
Michael Bierman edited this page May 12, 2020 · 6 revisions

Welcome to the homebridge-http-switch wiki!

Sample configs

Add your configurations so others can see working examples.

  1. Use case, A Flo Here is the config I ended up with to control my Flo which turns on and off water to my home. Since it lacks open APIs, I used ifttt to change states of the unit and apilio to store the state.

     {
         "accessory": "HTTP-SWITCH", 
         "name": "Flo",
         "switchType": "stateful",
         "pullInterval": 5000,
         "debug": true,
         "statusPattern": "true",
         "onUrl": {
             "url": "https://maker.ifttt.com/trigger/[trigger_removed]/with/key/[key_removed]",
             "method": "GET"
         },
         "offUrl": {
             "url": "https://maker.ifttt.com/trigger[trigger_removed]/with/key/[key_removed]",
             "method": "GET"
         },
         "statusUrl": {
             "url": "https://api.apilio.com/api/v1/boolean_variables/Flo",
             "method": "GET",
             "headers": {
                 "Accept": "application/json",
                 "Authorization": "Basic [token_removed]"
             }
         }
     }
    
Clone this wiki locally