Hello gentlemen.
Does anyone know how to set the thermostat function in Tasmota 8.4.0 + DS18B20 temperature sensor?
I tried using the commands here: https://tasmota.github.io/docs/Thermostat/ but I can’t make it work properly.
My items:
Group OfficeThermostat "OfficeThermostat" <temperature>
Number OfficeTherm "OfficeThermostat" (OfficeThermostat) { channel="mqtt:topic:office_thermostat:temperature" }
Number OfficeThermSet "Setpoint" (OfficeThermostat) { channel="mqtt:topic:office_thermostat:temperatureset" }
Switch OfficeThermSW "OfficeThermSW" (OfficeThermostat) { channel="mqtt:topic:office_thermostat:power" }
I added a link to each button in the Paper UI and openhab sends the setpoint commands to the tasmota and correctly displays the temperature read by the DS18B20 sensor.
If anyone uses this combination please do a little step by step tutorial on how to set the thermostat in Tasmota 8.4.0
What does your .things file contain? I don’t have a definition for the temperatureset Channel, but the definitions for the power and temperature channels should look as below. Note in particular that the stateTopic prefix for the sensor is tele rather than stat…
Bridge mqtt:broker:MyMQTTBroker [host="192.168.178.50", secure=false, username="MyUserName", password="MyPassword"] {
Thing topic yourThing "Thermostat" @ "Wherever" {
Channels:
Type switch : PowerSwitch [stateTopic="stat/yourTopic/POWER", commandTopic="cmnd/yourTopic/POWER", on="ON", off="OFF"]
Type number : Temperature [stateTopic="tele/yourTopic/SENSOR", transformationPattern="JSONPATH:$.DS18B20.Temperature"]
}
}
I use the Wemos D1mini module and I made a video with everything I set in Tasmota and OpenHab.
Everything seems to work fine until minute 34:59 so:
Why does the thermostat turn off the switch if the setpoint is set to a temperature higher than the one read by the sensor?
Why if I turn off the power to the Wemos D1mini module or if I press the reset button all the settings related to the Thermostat are lost? https://youtu.be/ZEVY7E4yvTs
I’m afraid I don’t know - you’re much better off heading over to the Tasmota project and asking.
Do double check all the information on the page you linked - switching off might be intentional, depending upon the duty cycle etc settings that you have applied…
Again, I think you’ll have more luck asking the Tasmota project.
(PS the mention of “ramp up mode” makes me think that whoever wrote this is not an expert in control algorithms; and there’s no mention of PID control…)
This feature looks very interesting. I am planing to use it on my infloor heating system which utilizes a thermostat in almost every room. I already have the temperature sensors ready with OH.
I need to install two Sonoff 4CH units and start testing…
Do not compile Tasmota with Arduino IDE anymore.
We dropped support for. Tasmota is only tested (and build) with PlatformIO.
Using Arduino IDE can result in faulty firmware with unexpected behaviours
Some features will for sure NOT work.
Greets Jason2866
Edit: You can find now a thermostat build on my special Tasmota builds github: Tasmota Thermostat
No OTA since github uses only https. Tasmota uses http only (to low resources of the ESP8266 for https). So download and upgrade via file upload. This is OTA too but not fully automated.
Yes to DHT, support of all temp sensors which are supported from Tasmota is in this build
Greets Jason2866