This is a plugin for Homebridge to allow controlling your KlikAan-KlikUit outlets. This plugin is meant to run on Raspberry Pi's (or boards with a similar GPIO setup).
You'll need an external executable (kaku
) that will take three arguments: address (A-Z), device number (1-4) and state (on/off).
My own setup is based on this blogpost.
$ npm i robertklep/homebridge-klikaan-klikuit -g
Homebridge plugins need to be installed globally, so the -g
is mandatory.
First, you need a working Homebridge installation.
Once you have that working, edit ~/.homebridge/config.json
and add a new accessory:
"accessories": [
...
{
"accessory" : "KaKu",
"name" : "licht woonkamer",
"pin" : 11,
"address" : "A",
"device" : "1",
"service" : "Lightbulb"
},
{
"accessory" : "KaKu",
"name" : "licht keuken",
"pin" : 11,
"address" : "A",
"device" : "2",
}
]
pin
is the physical GPIO pin that the 433Mhz transmitter is connected to.