robertklep / homebridge-klikaanklikuit

Homebridge plugin for KlikAanKlikUit outlets
15 stars 7 forks source link

config.json #16

Closed pjansen75 closed 7 years ago

pjansen75 commented 7 years ago

Hello Robert, I am really desperated about my config file. I don't get it to work. I tried a lot, but it will not have any result. The code that you published on the site is not working for me, homebridge reads an error in the file. This is what I have now:

{ "bridge": { "name": "Homebridge", "username": "CC:21:3E:E4:DE:33", "port": 51826, "pin": "031-45-154" }, "platforms": [{ "platform": "KlikAanKlikUit", "driver": "KaKu", "type": "kaku-rpi", "pin": 11 }], "accessories": [{ "name": "Spotjes zolderkamer", "type": "Lightbulb", "dimmable": false, "address": "M", "device": "1" }] }

Please, can you help me to configure it as a working configuration? Thanks in advance.

Regards, Pieter

robertklep commented 7 years ago

Hi @pjansen75!

Try this:

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:21:3E:E4:DE:33",
    "port": 51826,
    "pin": "031-45-154"
  },
  "platforms": [
    {
      "platform": "KlikAanKlikUit",
      "driver": {
        "type": "rpi",
        "pin": 11
      },
      "accessories": [
        {
          "name": "Spotjes zolderkamer",
          "type": "Lightbulb",
          "dimmable": false,
          "address": "M",
          "device": 1
        }
      ]
    }
  ]
}
pjansen75 commented 7 years ago

Yes, it is loading now. And... working. :-) Thank you

robertklep commented 7 years ago

Nice, have fun!