~/.homebridge/config.json
{
"bridge": {
"name": "Homebridge",
"username": "AA:B9:01:5D:32:C9",
"port": 51826,
"pin": "031-45-154"
},
"description": "NanoPi NEO2 Homebridge",
"accessories": [],
"platforms": [{
"platform": "cmdSwitch2",
"name": "CMD Switch",
"switches": [{
"name" : "Light",
"on_cmd": "/usr/local/bin/hb.sh light on",
"off_cmd": "/usr/local/bin/hb.sh light off",
"state_cmd": "/usr/local/bin/hb.sh light state",
"polling": false,
"interval": 5,
"timeout": 2000,
"manufacturer": "IRIS OHYAMA",
"model": "CL-RN1",
"serial": "no-serial-number"
}]
}]
}