CWempe / Thermostat-Controller

This Project improves the Junkers TRQ 21 T Thermostat with wifi and MQTT to conect to your smart home.
10 stars 2 forks source link

Thermostat-Controller

This Project improves the Junkers TRQ 21 T Thermostat with the following features:

Best of all: Your thermostat will not be managed and you can still change to day and night mode manually like before.

How does it work

You will replace the internal timer clock with an Arduino (esp8266) to switch between day and night mode.
The Arduino will be connected via WiFi and communicates via mqtt with your smart home (e.g. openHAB).
You can optionally integrate a button to change the current mode without switching to manual mode on the thermostat. But this may require damaging the original case if want it to look good.

What you need

Beside some standard components, you need:

Photos

Thermostat

thermostat

timer clock

timer_clock

timer_clock_connector

Circiut Diagram

ext_comopnents

breakboard

pcb

Photos

You can find more photos of the finished project in the photos directory.

configure Arduino (Sonoff-Tasmota)

Open the web interface of your controller.
Click Configuration and then Configure Mode. Select the Module Type.
Here : "18 Wemos D1 mini".

Define the Sensors for the GPIOs.

Click Save

If you added a switch to your project, execute the following commands in the Console in the web interface.

SwitchMode1 2
SwitchTopic1 wemos01-switch

See this page for more details.

configure openhab

You can find some example configuration files in the openhab folder.

You basically need an item for the relay and an item for the temperature sensor. To make use of some smart automation rules and manual override you might want to configure some virtual items. If you have any windows or door contacts connected to your smart home you also might want to turn the thermostat off while you let some fresh air in.

You can also use a transformation file to display more accurate terms than "ON" and "OFF" for day and night mode.

Finally I renamed some openhab2 classic icons to thermostat*.png/svg. (see /openhab/icons)

Example (openHAB)

openhab_screenshot
The current mode is "Nachtabsenkung" (night mode) The target mode is set to "Normalbetrieb" (day mode).
The override mode is set to "automatic" (this means no override).
The window is open.

While the current mode should be "day mode", because of the target mode, it actually is "night mode", because the window is open. Once the window closes the mode changes to "day mode" (target mode).