replace room thermostat by SONOFF

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

replace room thermostat by SONOFF

Post 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 :D All help is appreciated
SweetPants

Re: replace room thermostat by SONOFF

Post 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)
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: replace room thermostat by SONOFF

Post 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?
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: replace room thermostat by SONOFF

Post 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.
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: replace room thermostat by SONOFF

Post 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

:roll:
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: replace room thermostat by SONOFF

Post 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...
SweetPants

Re: replace room thermostat by SONOFF

Post by SweetPants »

JimmyH1969 wrote: Monday 20 August 2018 19:18 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

:roll:
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.
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: replace room thermostat by SONOFF

Post by JimmyH1969 »

I solved it using a Qubino Flush 1D switch ZMNHND1. This device has "Dry Contacts" and perfect for switching something like this.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: replace room thermostat by SONOFF

Post by jake »

SweetPants wrote:
JimmyH1969 wrote: Monday 20 August 2018 19:18 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

:roll:
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest