An open API service indexing awesome lists of open source software.

https://github.com/shajanjp/easyhome

Home automation using NodeMCU. Dashboard for easy device management.
https://github.com/shajanjp/easyhome

arduino dashboard esp8266 home-automation internet-of-things iot nodemcu wifi

Last synced: about 2 months ago
JSON representation

Home automation using NodeMCU. Dashboard for easy device management.

Awesome Lists containing this project

README

          

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

![](https://i.imgur.com/E4ydN86.png)

## 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 :
```json
[
{
"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 :
```json
{
"plug": 1,
"status": 1
}
```

### Turn device 2 off
#### Request :
`GET /plugs?plug=2&status=0`
#### Response :
```json
{
"plug": 2,
"status": 0
}
```

### Strip lighting
#### Request :
`GET /strip?r=150&g=50&b=200`
#### Response :
```json
{
"msg": "Enjoy the colors"
}
```

### Strip light effects
#### Request :
`GET /strip?r=150&g=50&b=200&type=roll`
#### Response :
```json
{
"msg": "Enjoy the colors"
}
```

### Available strip effect types
* roll
* snake
* rainbow