Skip to content

openenergymonitor/ESP8266_Relay_Board

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One Channel WiFi Relay/Thermostat Board

The One Channel WiFi Relay/Thermostat Board is a WiFi connected multi-purpose relay board based on the ESP8266 SoC.

NOTE: The board connects to and controls high voltage, knowledge and care is required to handle it

mqtt-relay

Highlights

  • Option for on-board power supply
  • Powered by the WiFi ESP8266 SoC module
  • HTTP API to control the relays
  • MQTT support
  • NTP for network time
  • HTTP daemon settings, including security/authentication setup
  • HTTP UI for configuration and control
  • Thermostat function with weekly scheduling
  • Manual relay control
  • Broadcast using HTTP GET to services like ThingSpeak and emonCMS
  • Integration with ThingSpeak for charting/analytics visualization
  • Temperature sensor support
  • DS18B20
  • DHT22

See more at the Three Channel WiFi Relay/Thermostat Board WiKi

Firmware

Open Source firmware options:

  • This OpenEnergyMonitor fork of Martin Harizanov's original repository contains an adaptation of the 3 channel relay firmware for 1 channel use.

  • Alternatively EmonESP can also be used.

Using serial input for an external temperature sensor

Details thanks to Felix Paliuc:

  • First setup the "serial" as the input for the sensor.

The temperature value must be sent in a particular way:

  • First you have to send an "\n" which gets interpreted as a command.

  • After that, you have to send the temperature value like this: serialremotetemp=

  • The value of the temperature must be between -3000 and 12000 which gets divided by 100 later.

  • Practically, I hooked a moteino to the Rx of the ESP8266 and configured the sketch to send temperature with a line like this:

    Serial.print("\nserialremotetemp=1500");

Author

Martin Harizanov

License

This project is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

License

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

Packages

No packages published

Languages

  • C 86.2%
  • JavaScript 5.8%
  • Smarty 2.8%
  • Python 2.3%
  • HTML 1.1%
  • Makefile 0.9%
  • Other 0.9%