Skip to content

SuperCaliMan/SmartThermostat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart-Thermostat

Smart-Thermostat is a simple way to control temperature and humidity in your house from your smartphone, you can control thermostats by app

Thermostat funtions:

  • Switch to manual mode for power on/off the boiler
  • Switch to automatic mode for setting the temperature that you want
  • Show humidity inside your house
  • Show outside temperature and humidity
  • Automatic reconnection if WiFi disconnect
  • Set operating time
  • Send email in case of error
  • If inside temperature is less than zero switch on boiler to prevent freezing
  • OTA Update

Getting Started

Clone the repository, create firebase account and create a database with this parameters. You can also check out my example server example server.

Now you can set FIREBASE_HOST and FIREBASE_AUTH. You can find your database secret key in firebase, in this project i used this key to connect my board with firebase, for more details look here. Now register in OpenWeatherMap to get weather data and set your key on Weather setup and set Weather Setup parameters. I use Firebase-Arduino API to dialog with nodemcu and firebase. I used this library to send email Gsender. Now you are ready to control temperature and humidity in your house.

Parameters setup

//Weather Setup
    KEY = "your open weather key";
    COUNTRY = "your country";
    STATE = "your state";   //like: US
    UNITS = "metric";       //imperial
    UTC = 2;

//Firebase connection parameters.
    FIREBASE_HOST "*************.firebaseio.com"
    FIREBASE_AUTH "****************************"

//Wifi connection parameters
    WIFI_SSID "****************"
    WIFI_PASSWORD "************"

Email[] = {
   "your email"
};

Building and component

If you want build this you can watch my wire diagram here

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details