giu1io / homebridge-ankuoo-rec-switch

Homebridge plugin that integrates with Ankuoo Rec Switch
GNU General Public License v3.0
10 stars 5 forks source link

how to add two switch config?? #3

Closed OctoberHub closed 6 years ago

OctoberHub commented 6 years ago

hi, This config it's ok???

"accessories": [ { "accessory": "AnkuooRecSwitch", "name": "Switch number one", "ip": "192.168.XXX.XXX", "mac": "ac:cf:XX:XX:XX:XX", "onCode": "9464c0499574484f04a29367XXXXXXXX", "offCode": "fd344f402a3f6299b53010XXXXXXXXXX"

                     "accessory": "AnkuooRecSwitch",
        "name": "Switch number two",
        "ip": "192.168.XXX.XXX",
        "mac": "bb:cf:XX:XX:XX:XX",
        "onCode": "dfsafas4c0499574484f04a29367XXXXXXXX", 
        "offCode": "ddfadxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
giu1io commented 6 years ago

It’s hard to tell because I don’t see it formatted properly but it should be something like:

{
   "accessories":[
      {
         "accessory":"AnkuooRecSwitch",
         "name":"Switch number one",
         "ip":"192.168.XXX.XXX",
         "mac":"ac:cf:XX:XX:XX:XX",
         "onCode":"9464c0499574484f04a29367XXXXXXXX",
         "offCode":"fd344f402a3f6299b53010XXXXXXXXXX"
      },
      {
         "accessory":"AnkuooRecSwitch",
         "name":"Switch number two",
         "ip":"192.168.XXX.XXX",
         "mac":"ac:cf:XX:XX:XX:XX",
         "onCode":"9464c0499574484f04a29367XXXXXXXX",
         "offCode":"fd344f402a3f6299b53010XXXXXXXXXX"
      }
   ]
}