-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard Thermostat #481
Comments
i like this idea. i recently built a thermostat with a raspberry pi, some relays and Node-Red and mqtt all built in. Trusting the PI for 24/7 operation is a bit sketchy. and if it reboots it takes a while to boot up and get all its gears turning. Working well so far, if you have a PI i can share my node red flows with you. |
Thanks, i have mine also in node-red and in openhab rules |
Why not for any sensor that returns an analogue value (that is, not binary). So, for instance, a set point for humidity to control the bathroom extractor fan, a light sensor could turn security lights on and off, a proximity detector could control stair well lights. Hmm, the last one is a bad example but you get the picture. The underlying logic is generic, if a sensor value is exceeds some thresholds, switch a relay and or send a message. The implementation might not be as responsive as you like because, if memory serves, sensors are polled rather than continuously monitored and why having a proximity sensor manage stair lights could have undesirable consequences. So it's a +1 from me. Peter |
Oh! I forgot. It would be nice if the feature could be enabled or disabled depending on the presence or absence of an Mqtt connection. So, if the Mqtt service dies, lights still turn off and on. If Mqtt is working the control reverts to a higher authority. |
I made a simple thermostat at my place. (On fast) I wanted to make PID and settings. sonoff.ino
|
This question has come up several times.
It is currently not supported, although it would be possible to add it.
One problem is "what sensor should it look at" given that multiple sensors can
be attached at the same time.
Another is how many such configs should it allow at once? (on a dual, should it
be able to control both a heater and an AC with different settings?
There is similar functionality in the POW to respond locally to power
consumption, so it's not out of the question. but someone would have to think
through the details and code it in a way that does not require a lot of extra
flash or ram.
|
All right. If you make a thermostat, then there may be several controls. |
i think it should be independent from type of sensor you are using. if you have any sensor supplying temperature then the "thermostat" option should be available, with dropdown list for sensors found. of course, could be many variations, like 2 relays, pow-models etc - but i guess it will make the development complicated and even not compatible with sonoff chip (memory size) my suggestion is to go with simplest possible setup |
has anybody been able to implement this? Tasmota is great but Wifi routers and Networks fail...and i dont want my walk in freezer to be left ON forever. i know that easyesp has "rules" that make this possible but unfortunately easyesp is a lot more tricky to configure. |
This has been a repeated request.
|
+1 I was wondering about the same functionality and before opening a new request I searched and found this one. It would really be a handy feature to control heating, cooling, de-/humidifiers, or use input from other sensors like light, moisture, ... |
+1 that would love this functionality. To make implementation simple, should focus on Sonoff TH10/TH16 hardware (one sensor / one relay). |
Sounds interesting. Has anyone have a solution for controlling radiator TVRs? |
It would be not far from the existing power threshold triggering, no?
Le lun. 9 oct. 2017 19:02, apathyuk <notifications@github.com> a écrit :
… Sounds interesting. Has anyone have a solution for controlling radiator
TVRs?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#481 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcMo5UDDwdaAgNN4MomBaleymZyMEwnoks5sqlGFgaJpZM4Nl8Ml>
.
|
I building electric floors heating in bathroom. There is a simple 220v wire (https://www.infrafloor.com/images/HomeBoxes/big/InfraFloorMat-FloorHeating.jpg). I think that Sonoff TH10/16 with water proof temp sensor inside floor concrete below tiles would be a solution here. I agree with @nambuco. Would be great to have this feature. |
I will try to implement a temp control for Sonoff TH, in case it works I will share it here. I may need help from someone who knows the sw structure. I will use AlexTransit code as a starting point, add PID and setpoint adjustment using MQTT (that's the complex part...). Let's see... |
I connected Sonof BASIC to the thermopot. as a relay I use SSR. |
Hi guys! Any news on this request? I have my sonoffs running my own (buggy, sloppy and slow) firmware, but having a TASMOTA Thermostat would be great, realy great! +1 |
Hello Guys, I finally got my USB/TTL converter and flashed my first Sonoff TH for testing. I forked this repository and will start coding a "hard thermostat". Every tip / information will be welcome. I will implement an on-off controller because my application (refrigerator) does not require a PID control. I noticed that temp measures are done on every telemetry cycle defined by TelePeriod parameter. My idea is to run the thermostat function at same frequency. I want to use some of the free setting bytes for a SetPointTemp, Histeresys and ThermostatMode - On (or Auto) and Off . I will post here the evolution of this change. Nambuco |
look at how the power limit functions are done, they are probably a good model
|
It would be good if the TH1x temperature sensors would be supported and even cooler of also a remote temperature sensor could be supported. @nambuco Btw, regards flashing, check out: https://github.com/mirko/SonOTA |
@davidelang, thanks for the tip, it helped me to implement the first beta version available on https://github.com/nambuco/Sonoff-Tasmota for testing. @mo8Zomo0, I am using the OTA in the WebServer interface, works fine here. I implemented for DS18B20, I do not have the TH1x sensor to test, but should be easy to adapt (replace Ds18b20ReadTemperature() by ShtReadTempHum() in the thermostat.ino file). |
@nambuco Can you make in the firmware a simple logic for switching the relay? |
Hi @sgttrs , If you change the constant on thermostat.ino file #define OFF_DELAY 90 // minimal off time in seconds both to zero, you have the effect you want. I just warn you that turning off and on before 60 seconds can damage a compressor (if this is your application). Important point, set tele_period to 10 to allow a fast response |
@nambuco Thanks for the answer. I want to use Sonoff in the heating system to start the circulation pump. Is it suitable for this application? |
Hi @sgttrs , if the logic is like you describe (temp above setpoint turns on the relay) it will work as it is. Please be aware that I did not test in all possible conditions, You have to download and help me test in your setup. I am planning to add a second mode where the relay will turn on if temp is below setpoint. |
Hi @nambuco, I'm testing the firmware with the settings you suggested. When I activate the thermostat and enter SETPOINT 30, the thermostat turns on the relay at any temperature, even if it is less than 30 ° C. I also noticed that when I connect Sonof to AC, it turns on and off the relay several times. Is there any way to avoid this? |
Hi @sgttrs, the SetPoint is defined in 0,1 steps, this means, to get 30C you have to input 300 in SetPoint. |
Hi Is it possible to put wished temperature via MQTT? I would like to add this as "thermostat device" to my Homebridge. I am beginner so please explain me as clear as possible. :) |
Hi @nambuco. I just tried to change the temperature with the
Rebooting the module does not help. Hi @pixidixi88. The firmware is still under development. Various errors in work are possible. If you are ready for this, here is the instruction on how to install the firmware on the module. Also read the posts of nambuco in this thread. |
Hi! I have a Sonoff TH16. Was working flawlessly with tasmota 5.10.0. Now I can't see the sonoff in my network. If I unplug my router, I can access the web interface (I have a dedicated AP for home automation), but it's asking to login in, with user & pass, which I don't know. Any ideas? |
@IceStuff I have been running with v5.12.2 now for 20 days and it has worked flawlessly. |
Hi, In the wiki, now is available an example of a Simple Thermostat using RULE feature (https://github.com/arendst/Sonoff-Tasmota/wiki/Rules#7-simple-thermostat-example) Please, check it to see if that helps you. |
@dweston , did you go from "regular" tasmota to ThermoWeb, uploading sonoff-GB-thermostat-5.12.2_beta.bin OTA through the web interface, or did you flash the .bin using the serial port? |
@spacefolder I downloaded the .bin file off Github and flashed it OTA within my local network. |
@ascillato I would not say that is simple, but I can certainly see the powerful flexibility built into the 'rule' system. When I can set aside the time I will give it a go using this example. In the meantime for my present purposes v5.12.2 is working perfectly well for me and is considerably easier to work with. |
I gave it another shot. Reinstalled Tasmota. Everything working fine. My DHCP assigns the IP correctly, and the Sonoff reads temp and humidity values correctly (itead Si7021 sensor). Tried upgrading via web interface (downloaded a "fresh" thermoweb .bin) Still the same issues. It self asigns 192.168.1.1 (clashing with my routers' IP) Any clues? |
@spacefolder I'd suggest you do a complete memory erase via serial https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool#optional-erase-firmware and then reinstall https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool#upload-firmware using Esptool. Remember the OTA does not overwrite some persistent areas of Flash so if a bug is in the persistent part it will keep on being an issue. |
Hi folks, What is particularly interesting is the local scheduler and web interface feature, making it possible to manage and use the thermostat completely independently. The scheduler comes from here: Would be super-nice to get this in to this project for TH modules. |
@IceStuff I have just encountered my first hic-up with the v5.12.2 firmware. I had reason to update my MqttHost address in all my Sonoffs, only one of which at the moment is running v5.12.2. All the rest are running v5.13.0.The pre-existing MqttHost name was an IP address. After issuing a group topic command updating the MqttHost name, which in my case is now 'vistacontrol.local', all the devices changed over flawlessly except for the TH16 running v5.12.2. This refused to connect giving the following error: Changing the MqttHost in this device back into an IP address format for the new broker and the device connects no problem: I presume this is a quirk resulting from v5.12.2 being a branch off the main repository. |
is @IceStuff still around? I have just tried this excellent addition to control my freezer. However the web UI does not accept float numbers such as if I want to set the setpoint to -2.5C - same in the hysteresis input too. Is there a workaround? Also this firmware works with sonoff basic with ds18b20 added to gpio14 and TH model set. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @BladeRunner68, yes I am still here. I haven't received notification for any of these updates and just checked in to see how think are going. Thanks, |
@IceStuff are you intending to develop this branch further? I'm still using v5.12.2 which is quite stable, though the issue with MqttHost name referred to above, is still unresolved. I note the request above for float numbers, and the humidity ToDo mentioned at the bottom of your Wiki https://github.com/IceStuff/Sonoff-Tasmota/wiki would be very useful to me. |
I built my own thermostats from scratch (with Home Assistant in mind) but I do like the idea to put it on top of tasmota. |
Hello, |
Hi, Closing this issue as it has been without activity for a while and it is not going to be developed soon for Tasmota. Anyway, it has been added the label Feature Request (hold over) for future reference because here were exposed very interesting ideas. May be this feature can be added as a new extra driver in the near future. Thanks everyone for sharing their ideas. As a workaround for this feature there is in the wiki, an example of a Thermostat using RULES feature (https://github.com/arendst/Sonoff-Tasmota/wiki/Rules#7-simple-thermostat-example) Please, check it to see if that helps you. |
Added #8212 |
Hello, Can you send the correct link here? Thank you |
Is it possible to include functionality of HARD thermostat - where no MQTT(or similar) server is available or there are no commands received.
Of course this mode will require temp sensor connected.
You need to include logic to support COOL or HEAT modes, Hystersis setup (0.1 - 5) together with TargetTemperature
This will make sonoff working as a thermostat with web interface, even without any server. Very useful when sonoff is installed on remote location and there are big chances that internet is not stable there
WDYT?
The text was updated successfully, but these errors were encountered: