thermostat esp8266 1 ch dh22

592/5000
Can I upload this project ESP8266_Relay_Board/1ch_relay at master · openenergymonitor/ESP8266_Relay_Board · GitHub, compiling it maybe changing pinout, on the sonoff th 10 ???

The dht22 sensor is compatible or only the ds18b20, the project says that only the ds18 is compatible …

Or alternatively I can use an esp8266 esp-12e + 1 relay board + dh22 temp sensor.

Precise that I need a dry contact, without voltage.

I want this software because it has a web server and weekly programming of the thermostat, then I would like to interface it to a raspberry with home assistant.

thank you so much

Essentially yes, but check the sonoff. If it’s like some of their other devices it is based on the esp8285 which probably won’t have enough memory. Try compiling the code to see how big it is. If you do this in the arduino environment and select the right target it should show you how much ram and rom would be used.

Simon

thank you i will user wemos platform . i have another question , looking at the source code the are some files about an i2c oled screen . it work like a stand wall thermostat ?

the other question is the relay is on GPIO12 , but i can’t understand what pin they user for 1wire of the DS18B20
looking at this diagram https://guide.openenergymonitor.org/images/integrations/relay-schematic.png the header 3 get 1 to GPIO2 and other 2 pin to tx and rx … .

DS18B20 need vcc gnd and one wire for data…

i flashed wemos d1 pro its start i choose the wifi network and when reboot … go in boot loop… im using the compiled bin … can be a problem ?

Hello …
I successfully flashed (oem.v3361.bin) to a wmos D1 mini and everything works fine … so far!
Now I have the same problem as Andrea.
How to connect a DS18B20 to the board?
As Andrea mentioned:


> the header 3 get 1 to GPIO2 and other 2 pin to tx and rx … .
> 
> DS18B20 need vcc gnd and one wire for data…

I am using oem.v3361.bin
I there any description on that?
Connecting DS18B20 to Vcc and GND and Data to Gpio2 (D4 on Di mini) no data will be recieved … nan°C in the webinterface!! EDIT: it works that way after a reboot!!
Also it would be nice to support for DHT22 / AM2301 sensors (port selectable). BMP280 would be too difficult because it uses I²C.
and also it would be nice if the relay port could be selected. Some simple 1 port ESP-01 devices use Gpio0 for relay port. Attach a DHT22 or DS18B20 and u can have a very good thermostate!!
Thanks for any help!!
Mark_Muc