[V4] Tasmota SonOff TH Integration

Hello everyone,

[Preamble]

I bought my house 15 years ago. It was heated with atherno electric radiators (already not so young) that could be controlled remotely with consoles from the same brand. The console included a temperature sensor, allowed setting a temperature setpoint, and activating/deactivating the regulation around this setpoint. Life went on, the consoles one after the other gave up the ghost. I contacted the manufacturer, re-editing old consoles cost an arm and a leg. I tried to hack the consoles/receivers but the protocol was proprietary and the microprocessors too old (compiler to configure, …). I ended up gutting everything and only keeping the heating body (resistance/refractory stone) and its electrical safety system. I had beautiful on/off radiators.

[Home Automation]

To regain comfort through temperature regulation and to reduce my electricity bill, I sought to automate my radiators.
Out of the question to remove cables throughout the house, so I needed a wireless solution. And as my house is large and old (the walls are thick), the low-cost and traditional solutions at 400~800kHz were not suitable. I searched/tested z-wave, xbee implementations or even DIY with mysensors.org. And it was finally on the SonOff TH modules that I settled three years ago: a sensor, a relay, wifi communication with a known processor => everything I needed for regulation.
After some « difficulties Â» and questions about the manufacturer’s firmware (which joyfully sent my data to its servers), I found the Tasmota firmware which met two of my needs:

  • a local regulation solution thanks to a script system (to decentralize regulation and be robust to frequent communication losses)
  • a simple and autonomous interface to control/configure the heating directly/fine-tuned.

[Start of the Gladys adventure]

Until very recently, I was using OpenHab to try to manage my electric radiators. It was a gas plant especially for the management of mqtt installations. And updates were not without impact. I spent more time maintaining and fine-tuning my system than simply enjoying it.
Recently I read an article on Korben’s blog that mentioned switching to a version 4 of a home automation system Gladys. A quick look at the site and the documentation allowed me to see that it managed my sonoff modules (at least in part) and mqtt.
I downloaded Gladys v4, I installed it on a raspberry pi that was lying around (in fact the one that hosted openhab :smiley: ), I did a scan of my radiators, I quickly updated my dashboard and created two basic scenes to make a hysteresis!
In short, in less than an hour I had a functional home automation system: well done guys! :slight_smile:

Now I am going to try to finely master my system and keep you informed of my adaptations/remarks.
Next project to communicate in mqtt with the radiators script (send the setpoint values and on/off of the regulation).

see you :blush:

What a magnificent speech, it’s a pleasure to read!

Hello everyone,

First piece of good news for me, the 9.x firmware of Tasmota includes a regulation function (so goodbye to the script). Second piece of good news, all the control functions are accessible via MQTT.

These functions are not, however, present in Gladys. My JavaScript is a bit rusty (I’m more C/C++), but I’m going to try to integrate the missing Tasmota « features Â». Congratulations again, the code architecture is relatively clear and well structured to get around quickly. I just need to understand the exchange mechanisms between frontend and backend now, …

On the development side, I think I managed to install the development environment. The dependencies are not numerous, that’s cool.
Geek dilemma, I’m still hesitating about the IDE I’m going to choose! :grin:

Hello, we primarily use Visual Studio Code.
Otherwise, what are the features not supported by the Tasmota service?

Hello,

I might be mistaken but all Tasmota commands should be able to be featured. Those that would interest me belong to the Thermostat command group (Commands - Tasmota).
I’m trying to do something and if it works and it might interest someone, I’ll propose it to you. Would that be okay?

It’s nice to read :smiley:

Thank you for your feedback and welcome to the Gladys Assistant community! :slight_smile:

If you have specific needs (in scenes, the dashboard), don’t hesitate to post in specific topics on the forum, Gladys v4 has just been released, we are still at the very beginning of this version and we are looking for any feedback.

And if you want to contribute, that’s even better, it’s the best way to help.