Skip to content

Homebridge plugin to control relay switch via Raspberry Pi GPIO pins.

License

Notifications You must be signed in to change notification settings

rsporny/homebridge-gpio-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-gpio-switch

Homebridge plugin to control relay switch via Raspberry Pi GPIO pins.

Configuration

Sample accessory:

"accessories": [
    {
      "accessory": "Switch",
      "name": "Bedside lamp",
      "pin": 18,
      "invert": false
    }
]

Fields:

  • accessory must always be Switch
  • name accessory name, e.g. Bedside lamp
  • pin control pin (use gpio numbering, not physical)
  • invert false: relay activated by low state (0), true: relay activated by high state (1), affects pin

Troubleshooting

  • check platform: Homebridge
  • check plugin dependency: rpio
  • or create issue

About

Homebridge plugin to control relay switch via Raspberry Pi GPIO pins.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •