Page 1 of 1
replace room thermostat by SONOFF
Posted: Monday 20 August 2018 17:02
by JimmyH1969
Hi group,
I have the idea to replace the room thermostat by a SONOFF Wifi switch. By messuring the room temperature and some LUA/Dzvents scripting it should be possible to trigger the SONOFF and switch heating On/Off i guess?
2 questions:
- Am i missing something in this idea/setup?
- Are there any SONOFF Wifi switches already flashed with ESPEasy available for easy integration in Domoticz?
Thank you

All help is appreciated
Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 18:34
by SweetPants
JimmyH1969 wrote: ↑Monday 20 August 2018 17:02
2 questions:
- Am i missing something in this idea/setup?
Which Sonoff are you planning to use? The thermostaat is probably 24V so if using a regular Sonoff you need to modify it
JimmyH1969 wrote: ↑Monday 20 August 2018 17:02
- Are there any SONOFF Wifi switches already flashed with ESPEasy available for easy integration in Domoticz?
Not sure, I re-flashed my sonoff switches myself, you only need to solder a header to connect your serial UART (be aware it uses 3.3v, ESP's are
NOT 5v tolerant)
Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 19:10
by JimmyH1969
Which Sonoff are you planning to use? The thermostaat is probably 24V so if using a regular Sonoff you need to modify it
Ah i see, i thought these where just relay boards, but they output the same as the input i guess?
Not sure, I re-flashed my sonoff switches myself, you only need to solder a header to connect your serial UART (be aware it uses 3.3v, ESP's are NOT 5v tolerant)
So that means i cannot connect it the USB port straightaway, or is that whats the header for?
Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 19:16
by jake
I would advice not to create your own thermostat script, but to use the svg Python plugin, or the dzvents version.
I use the Python version that I use to manipulate my existing iSense thermostat set point via the opentherm gateway. This makes the iSense react like on-off, while it remains an opentherm connection to the boiler.
Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 19:18
by JimmyH1969
So like i said, i just need a wifi relay switch. Would it be possible to connect this to domoticz you think?
https://www.banggood.com/Upgrade-5V-ESP ... rehouse=CN

Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 19:20
by JimmyH1969
jake wrote: ↑Monday 20 August 2018 19:16
I would advice not to create your own thermostat script, but to use the svg Python plugin, or the dzvents version.
I use the Python version that I use to manipulate my existing iSense thermostat set point via the opentherm gateway. This makes the iSense react like on-off, while it remains an opentherm connection to the boiler.
Good point. I'll use the script. The current thermostat is just a on/off thingy, not opentherm, so my guess is a relay should work...
Re: replace room thermostat by SONOFF
Posted: Monday 20 August 2018 20:57
by SweetPants
I think you can, but you still need an USB-to-TTL serial port module to program it and a separate 5v powersupply. Be aware, this module is ESP-01 based and these modules have less memory ten ESP-07/12 based boards and this maybe not enough if you want to use OTA updates.
Re: replace room thermostat by SONOFF
Posted: Wednesday 22 August 2018 11:31
by JimmyH1969
I solved it using a Qubino Flush 1D switch ZMNHND1. This device has "Dry Contacts" and perfect for switching something like this.
Re: replace room thermostat by SONOFF
Posted: Wednesday 22 August 2018 12:50
by jake
SweetPants wrote:
I think you can, but you still need an USB-to-TTL serial port module to program it and a separate 5v powersupply. Be aware, this module is ESP-01 based and these modules have less memory ten ESP-07/12 based boards and this maybe not enough if you want to use OTA updates.
I followed this instructions to install tasmota on the sonoff:
https://youtu.be/ONFhXM5R-t4
No need for soldering etc or additional power supplies.
You have to control the sonoff than with mqtt