-->
Page 1 of 2

Control central heating with two esp8266 modules

PostPosted: Sun Sep 27, 2015 2:06 pm
by otacxxl
Hi all,

I am new to ESP8266. I would like to control my central heating with two ESP8266 modules. One module would be placed in my living room and I would connect one ds18b20 temperature sensor to that module. What I would like is to access that module via web (from my mobile phone) and read current room temperature and set my desired room temperature. When the current room temperature is lower than my desired room temperature I would like for that ESP module to send a signal to another ESP module which is connected to my central heating system via relay module, than that (second ESP module) module would trigger (via relay) my central heating system. Those two ESP modules would be connected to my home wireless router.
What would be the best way to implement this system?

Tnx,
otacxxl

Re: Control central heating with two esp8266 modules

PostPosted: Tue Sep 29, 2015 10:51 am
by otacxxl
Does anyone has any suggestion?

Re: Control central heating with two esp8266 modules

PostPosted: Tue Sep 29, 2015 3:05 pm
by eduperez
You seem to have everything figured out, I do not understand what are you asking exactly. There are examples for reading the temperature from a sensor, examples for having a web page, and examples for controlling a relay; you just need to mix all that together.

Or you can go all the way, and use MQTT + Mosquitto + OpenHAB; you decide.

Re: Control central heating with two esp8266 modules

PostPosted: Wed Sep 30, 2015 6:34 am
by trendchaster
Hello guys,
I am using MQTT. I want to convert MAC Address into string>I tried so many things but it wont work.Any suggestion or idea will be appreciated.I implemented this one but my esp crashes at this point and again restart.
os_sprintf(abc," rdaddr: %02x:%02x:%02x:%02x:%02x:%02x\r\n tsaddr: %02x:%02x:%02x:%02x:%02x:%02x\r\n",
MAC2STR(probe_request->rdaddr), MAC2STR(probe_request->tsaddr));