ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

DIY open source smart thermostat

Mon Aug 21, 2017 2:50 pm

Hi all,

following the discussion in this old thread, I would like to introduce the Telegea Smart Thermostat.

A long time has passed and after Nest a lot more Smart Thermostats have popped up on the market: Tado, Netatmo, Momit, Ecobee, Thermosmart, Lyric, to name just a few. But there doesn't seem to be a lot of choice when it comes to a Smart Thermostat which is completely open source and can be customized to personal needs.

That's why the Telegea project started to develop a Smart Thermostat based on the open source Telegea platform. It can be used with readily available "off the shelf" components and is of course based on the RaspberryPi.

We have just released a new SD card image which should make it easy to get started with the Telegea Smart Thermostat. There is also a guide which explains the few steps to set up the system.

A simple setup to control the temperature of one zone with a local display and the Smartphone app could look like this.

telegea-smart-thermostat-rpi.jpg
telegea-smart-thermostat-rpi.jpg (93.39 KiB) Viewed 15695 times

For a more professional setup we have developed the Telegea Smart Hub, which is a custom hardware based on the Raspberry Pi Compute Module. It can also be used to run the Smart Thermostat software, controlled by Smartphone app and a dedicated touch display based on the official RPi 7'' touch screen. The Smart Hub is usually mounted in a DIN rail cabinet together with the relay card.

telegea-smart-thermostat-tsh2.jpg
telegea-smart-thermostat-tsh2.jpg (78.16 KiB) Viewed 15695 times

Please let me know if you have some feedback, comments, suggestions. Of course, it would be great if you want to contribute directly to this project as a developer, tester or user.

Ondrej
The Telegea.org project: https://www.telegea.org

dorinv
Posts: 2
Joined: Mon Oct 23, 2017 2:06 pm

Re: DIY open source smart thermostat

Tue Oct 24, 2017 8:29 am

Hi Ondrej,

First off all, thanks for such great development and all the effort you and other guys put in to it.

Now I want your advice and help on how I should deal with telegea smart hub software installed on a rpi, if I want to deliver temperature information via UDP, http or mqtt(espeasy project) FROM esp8266 remote agents, and decisions from telegea thermostat (output/relays) also TO esp8266 agents installed on the boilers or other heaters via http api.

I am not sure, but I suppose you already know about espeasy project on github, anyway here is the doc on the protocols this project is supporting with espeasy firmware.

Let me know what are your thought about what I want to do, and maybe you could post some advice's.

Respectfully,
DorinV

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Wed Oct 25, 2017 9:22 am

Hi,

actually I didn't know the "ESPeasy" project. I just had a look and it seems very interesting. If you want to integrate ESP based sensors and actuators into the Telegea system you should first understand the Telegea Smart Hub software architecture. Here is a picture from the Telegea Github documentation:

Image

To integrate ESP based devices you would add a new module to the Platform Service layer. Here all hardware and protocol drivers are implemented. The Smart Hub is the master which requests information from the sensors or sends commends to the actuators. Each module from this layer provides a ModbusTCP interface to the upper layer. The application programs, like the Thermostat run in the Application layer and use the data from the Platform Service layer modules.

So the new ESP module would poll the ESP based devices for new data (like temperature) and put it in the Modbus registers which can be accessed by the Thermostat application. Other registers could be written by the Thermostat and this data would be sent to the associated ESP device (like a relay command).

There is also another way to do this, but it is more of a workaround. The Smart Hub provides an HTTP API where the ESP devices could send and request data from the platform service module. You could use the existing dummy module to store the data received from the ESP devices from where the Thermostat could read it.

You can check the the documentation for more details in our Github repository.

Ondrej
The Telegea.org project: https://www.telegea.org

dorinv
Posts: 2
Joined: Mon Oct 23, 2017 2:06 pm

Re: DIY open source smart thermostat

Wed Oct 25, 2017 2:11 pm

Thank you Ondrej. I will try what you recommended.

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Wed Oct 25, 2017 2:49 pm

dorinv wrote:
Wed Oct 25, 2017 2:11 pm
Thank you Ondrej. I will try what you recommended.
OK, please keep me updated. I am very interested to know if you manage to feed the ESP sensor data into the Telegea Smart Hub.
The Telegea.org project: https://www.telegea.org

Car camera rig
Posts: 6
Joined: Sun Nov 12, 2017 2:23 pm

Re: DIY open source smart thermostat

Sun Nov 12, 2017 7:25 pm

Could this be made to work with hive heating?

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Sun Nov 12, 2017 8:24 pm

Car camera rig wrote:
Sun Nov 12, 2017 7:25 pm
Could this be made to work with hive heating?
Could you be more specific? What is hive heating and what would you like make to work?
The Telegea.org project: https://www.telegea.org

Car camera rig
Posts: 6
Joined: Sun Nov 12, 2017 2:23 pm

Re: DIY open source smart thermostat

Sun Nov 12, 2017 9:14 pm

My apologies, it is a smart heating system but I wonder if telegea could me made to control trv’s and work in conjunction with the heating control. Not just for hive but others inc telegea?

https://www.hivehome.com/how-it-works?c ... lsrc=aw.ds

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Sun Nov 12, 2017 9:49 pm

Mmmh, I see Hive works with a hub, but I don't know if it provides an open API that Telegea could use to control it. Looks pretty much like a closed proprietary system.
Is there any documentation available for developers?
The Telegea.org project: https://www.telegea.org

Car camera rig
Posts: 6
Joined: Sun Nov 12, 2017 2:23 pm

Re: DIY open source smart thermostat

Sun Nov 12, 2017 10:39 pm

I’m not sure but I would make a guess that it’s closed, I’m no engineer but my thought is that when a % of the trv’s close due to reaching temperature a signal is sent to the hive to reduce the main thermostat temp adding a fine tuning process that would be different to each property but making it more efficient??
You know I’m not even sure if that’s a worth while task?? Did I understand right there are bridge emulators like ha bridge that could send that signal to a closed bridge?

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Mon Nov 13, 2017 11:44 am

I am not aware of any bridge emulator for the Hive system. Unless there is detailed developer documentation freely available, I'm afraid that Hive cannot be supported by any third party project.
The Telegea.org project: https://www.telegea.org

Toon Ami
Posts: 1
Joined: Mon Nov 27, 2017 8:53 pm

Re: DIY open source smart thermostat

Mon Nov 27, 2017 9:13 pm

Hello great project : )

I was wanting to know how hard would it be to have the system be based on a FLT (Feel Like Temperature)? This would factor in the humidity and possible smart fan controls to give a more consistent temp. I am curious if part of problem when predicting the temp is in some high humidity / wind climates the "71" can either feel comfortable, cold, or hot.

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Wed Nov 29, 2017 9:04 am

If there is a formular which allows to calculates the "feels like" temperature from the real temperature, humidity and air flow, this could quite easily be integrated in the existing thermostat algorithm. I don't see a major issue here.
Ondrej
The Telegea.org project: https://www.telegea.org

dagnygren
Posts: 3
Joined: Thu Feb 28, 2013 10:21 am

Re: DIY open source smart thermostat

Fri Mar 23, 2018 12:05 pm

Hi!

Been thinking about this as we would need to set up a remotely controlled heating for a summer cabin far far away from home...

But as an electronic designer I am very worried about the number of cycles a thermostat will generate on the relay....
Will not take too long until it is worn out. Has anyone found a good solution for this like a non mechanical relay?

Or is this just in my mind!

spconrad
Posts: 1
Joined: Mon Oct 15, 2018 11:44 pm

Re: DIY open source smart thermostat

Mon Oct 15, 2018 11:46 pm

dagnygren wrote:
Fri Mar 23, 2018 12:05 pm
Hi!

Been thinking about this as we would need to set up a remotely controlled heating for a summer cabin far far away from home...

But as an electronic designer I am very worried about the number of cycles a thermostat will generate on the relay....
Will not take too long until it is worn out. Has anyone found a good solution for this like a non mechanical relay?

Or is this just in my mind!
Is the project no longer open source? The github link to https://github.com/telegea returns not found :(

CanofBeans
Posts: 1
Joined: Mon Oct 22, 2018 1:02 pm

Re: DIY open source smart thermostat

Mon Oct 22, 2018 1:14 pm

link also doesn't work for me, but this:
https://www.telegea.org/smart-hub/
seems to be an updated site, and on the "About" page it says it is still open source. However the documentation also gives the same github link that is dead.
Searching on Github leads to:
https://github.com/morejava/Smartbox-software
Can that contain what you are after?
br

ondrej1024
Posts: 150
Joined: Thu Dec 05, 2013 3:09 pm
Contact: Website

Re: DIY open source smart thermostat

Tue Oct 23, 2018 9:41 am

Hi all,

the Telegea community support has been suspended for now. The Telegea project will be continued to be developed by DEK Italia internally as the platform our commercial HVAC control system termogea.com is based on.

This step was necessary because we don't have enough resources to support the community activities and the project has not have any benefits from the open source community. Unfortunately no developers have joined the project and contributed to it. If there will be interest in the future from developers to contribute in any way, we might revise that decision and restart community activities again.

Ondrej
The Telegea.org project: https://www.telegea.org

Return to “Automation, sensing and robotics”