Home automation using NodeMCU. NodeMCU ESP8266 dashboard.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_data
_includes
.gitignore
README.md
easyhome-logo.png
index.html
pattern-bg.png
script.js
server.ino
start.sh
style.css

README.md

EasyHome

Home automation and ambient lighting using NodeMCU. Control up to 4 devices and neopixel strips.

PIN Connections

  • Device 1 => GPIO 5 => D1
  • Device 2 => GPIO 4 => D2
  • Device 3 => GPIO 14 => D5
  • Device 4 => GPIO 12 => D6

API

Get device details

Request :

GET /plugs

Response :

[
    {
        "plug": 1,
        "status": 0
    },
    {
        "plug": 2,
        "status": 1
    },
    {
        "plug": 3,
        "status": 1
    },
    {
        "plug": 4,
        "status": 0
    }
]

Turn device 1 on

Request :

GET /plugs?plug=1&status=1

Response :

{
    "plug": 1,
    "status": 1
}

Turn device 2 off

Request :

GET /plugs?plug=2&status=0

Response :

{
    "plug": 2,
    "status": 0
}

Strip lighting

Request :

GET /strip?r=150&g=50&b=200

Response :

{
    "msg": "Enjoy the colors"
}

Strip light effects

Request :

GET /strip?r=150&g=50&b=200&type=roll

Response :

{
    "msg": "Enjoy the colors"
}

Available strip effect types

  • roll
  • snake
  • rainbow