Homebridge plugin to control relay switch via Raspberry Pi GPIO pins.
Sample accessory:
"accessories": [
{
"accessory": "Switch",
"name": "Bedside lamp",
"pin": 18,
"invert": false
}
]
Fields:
accessory
must always be Switchname
accessory name, e.g. Bedside lamppin
control pin (use gpio numbering, not physical)invert
false: relay activated by low state (0), true: relay activated by high state (1), affects pin
- check platform: Homebridge
- check plugin dependency: rpio
- or create issue