bradymholt / smart-aladdin-bridge

This project allows one or more Genie Aladdin Connect enabled garage doors to be added as devices on the SmartThings platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raspberrypi-relay-controller

This Node.js application runs on a Raspberry Pi and allows you to control a Relay attached to the GPIO pins using a simple web page.

relay-controller-web-interface

Requirements

  • Node.js >= 9.9.0
  • A user account with sudo access (for deployment)

Setup

  1. Run ./run init. This will install dependencies.
  2. Run ./run to start the server

Deployment

Run ./run deploy username@hostname. It is assumed username has sudo access on hostname.

To see log output on the deployed host, run sudo journalctl -u raspberrypi-relay-controller. Add -f argument to follow the log.

SmartThings Setup

Device Handler Setup

  1. Login to https://graph.api.smartthings.com/
  2. Go to: My Device Handlers > Create New Device Handler > From Code
  3. Paste contents of support/pi-relay-control-device-handler.groovy
  4. Click: Create, Publish > For Me

Device Setup

  1. Login to https://graph.api.smartthings.com/
  2. Go to: My Devices > New Device
  3. Specify: Name, Device Network Id (arbitrary), Location, Hub, Type ("Pi Relay Control")
  4. Click: Create, Preferences > edit
  5. Specify: IP, port, Relay #
  6. Click: Save

About

This project allows one or more Genie Aladdin Connect enabled garage doors to be added as devices on the SmartThings platform

License:MIT License


Languages

Language:JavaScript 45.1%Language:Groovy 42.9%Language:HTML 9.3%Language:Shell 2.6%