'Offline' thermostat / Tasmota

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
slowtraveler
Posts: 7
Joined: Monday 24 April 2017 20:07
Target OS: Linux
Domoticz version: 3.5877
Location: Bulgaria
Contact:

'Offline' thermostat / Tasmota

Post by slowtraveler »

Hi,
I see that Tasmota firmware have implemented 'offline' thermostat. So when it's set up, it can work with last settings (temperature, logic) even if some WIFI/internet fault occurs.
Is someone tried to implement these advantages (to set up this 'offline' thermostat) to be set up in Domoticz?
It can be very useful for safety reasons - to be WIFI/internet independent. For example - you can control your water heater with a lot of logyc and dynamic profile in Domoticz plugin (for example to use mainly 'cheap' electricity), but to have 'safety' settings that even if no any Domoticz command arrive (if for example - no Wifi/internet at the moment), device to switch off electricity/heating at 85C.. Or just to continue to maintain last settings, not waiting for domoticz/MQTT to sent it commands to switch on or off :)
kimot
Posts: 105
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: 'Offline' thermostat / Tasmota

Post by kimot »

My "offline" thermostat works 3rd winter without any problem.
Not Tasmota but ESPeasy with "rules".

ESPeasy holds temperature ( room or floor ) and sends heating status, temeperatures, energy consumption and number of relay actions to Domoticz.
And make some "safety" - check max allowed floor temperature, setpoint in allowed range etc.
Domoticz sends to ESPeasy setpoint and if floor or room temperature is controlled.

Look here:

https://www.youtube.com/watch?v=1ef6tRinOQ4

Now I am using Sonoff Basic instead off Wemos.
2020-12-03-223809_1920x1080_scrot.png
2020-12-03-223809_1920x1080_scrot.png (155.8 KiB) Viewed 2271 times
2020-12-03-224003_1920x1080_scrot.png
2020-12-03-224003_1920x1080_scrot.png (155.86 KiB) Viewed 2271 times
2020-12-03-224308_1920x1080_scrot.png
2020-12-03-224308_1920x1080_scrot.png (217.44 KiB) Viewed 2271 times
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
slowtraveler
Posts: 7
Joined: Monday 24 April 2017 20:07
Target OS: Linux
Domoticz version: 3.5877
Location: Bulgaria
Contact:

Re: 'Offline' thermostat / Tasmota

Post by slowtraveler »

Thanks for response kimot,
I past i made similar project and it works, but i was not happy due to several reasons:
1. Mine was with 'custom firmware', based on ESPEasy. So replacing of faulty device was not so easy (this device run on remote location - 500km from home)... Thus i prefer to use 'stock' firmware with 'sonoff' devices - i send some there, and if some device fails - my friend there will go and just replace it without any specific knowledge (i already set devices to connect my home network there, so just minor setting change is done remotely).
2. Reporting and 'synchronizing' of modes, floods Domoticz history..
3. If power-off occured, device forget it's current settings. Yes, in my project i have variable 'flag' for safety reasons - to not switch heater until receive Domoticz settings, but sometimes there we have internet disruptions and it can take long time to get specific data (i used it for water heater, and due to huge consumption, i need to make specific 'heating profile' - temperature to heat water depends on time of the day. S i use there mainly 'cheap night energy', for heating to 'max temp', and then during daytime target temperature rapidly decreases, to decrease 'expensive'power using..
Anyway - maybe rules thermostat idea can be fulfilled and in Tasmota = thanks for idea...
kimot
Posts: 105
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: 'Offline' thermostat / Tasmota

Post by kimot »

ad 1)
I have one Sonoff with ESPeasy and with "service IP adress"
If some thermostat fails, I replace it with this "service" Sonoff, connect to its "service IP adress" and load config file previously stored for specific thermostat. This will restore everything including working IP. Or you can do this yourself and send alredy set device to your friend.

ad 2)
It is possible synchronize only after reboot, but I'm too lazy :o)
I can imagine , ESPeasy after reboot set some switch in Domoticz and Domoticz only in this case sends data to ESPeasy.

3)
I too start to safe conditions with heater off after reboot.
But ESPeasy itself can handle events based on specific time.
So it is possible due rules program your specific temperature curve for day

Code: Select all

on Clock#Time=sat,16:30 do
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
slowtraveler
Posts: 7
Joined: Monday 24 April 2017 20:07
Target OS: Linux
Domoticz version: 3.5877
Location: Bulgaria
Contact:

Re: 'Offline' thermostat / Tasmota

Post by slowtraveler »

1), yes, i have almost the same setup. But on ESPEasy, when i found Tasmota to be much more easy to setup...
2) yes, in ESPEasy i syncronized only after 'reboot' (noted reboot 'flag''), but my idea was to put 'current settings' to energy independent memory of ESP, so it will continue to work with last commanded settings until internet connection return back in life.
3) I need temperature curves to be easily setup in Domoticz only. So 'thermostat' just to be internet independent only on 'last settings'- to continue to work as termostat, but not to wait 'domoticz'commands to switch it on/off.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest