This Arduino project allows to automate water heater so that you always have hot water when you need it. You can create a schedule to turn the water heater on and off at specific times of day, and you can also control the water heater manually using a web server.
Arduino board: esp8266
URL: http://water-heater.local/set-schedules Pauload:
[
{
"hour": 23,
"minute": 45,
"state": 1
},
{
"hour": 10,
"minute": 0,
"state": 0
},
{
"hour": 6,
"minute": 30,
"state": 0
}
]
URL: http://water-heater.local/get-schedules
URL: http://water-heater.local/get-state
URL: http://water-heater.local/state-on
URL: http://water-heater.local/state-off