Back in 2017 I wrote a blog entry called “A Thermostat Weekend” – some weekend that turned out to be. Well, to cut a long story short, the stat worked but I was at the time just finding out all about NEST and other modern stats and so my ESP-GO/Node-Red thermostat development started gathering dust.
Then we fitted a new Air Source Heat Pump heating system and it looked like my thermostat skills might be redundant.
This new system came with a Salus IT 5000 Thermostat – absolutely lovely App, nice display and this I thought would well and truly bury my interest. How wrong could I be.
Here is the latest version of my stat web display (NR Dashboard) – I removed the redundant FROST setting and improved the formatting.
I found some issues with the original QDTECH 240*160 LCD display in terms of reset reliability bearing in mind I’m short of ESP8266 IO pins and reset is hooked to processor reset (I then realised that I can use GPIO0 as an output with a new command, to reset the display) and I’ve changed to an ILI9341 for the final version as well as fixing some bugs with AWAY timing, VASTLY improving the web stat (Dashboard) css and adding multi-functions to the two available inputs – so that “up” and “down become “auto” if pressed simultaneously OR if either of the two buttons are long-pressed. I’ve done this extra functionality in Node-Red. The larger display also shows full time, day and date as well as “away” status. Also not shown here but in one unit I’m using cheap single-key touch panels for manual heat up and down.
Buttons now have long-click functionality to handle AUTO…. Display shows humidity and more… fixed “away” timing bug in online display… this looks a LOT prettier with a front panel (that’s a 5v power supply in there on the left).
The new flow is on Pastebin as it is quite large
Our requirements are simple enough – we need remote control – and simplified controls for when we are in Spain as our UK cottage is used for holiday cottage rental. An additional complication is that you have to be sensible with air source heat, you don’t have the fast responsiveness of oil and the range of temperatures needs to be limited – a heavy responsibility for guests… and the heating controls need to be reliable. The original Salus thermostat was having none of that and the supply company seemed unable to come up with a suitable alternative.
So I started looking around – Nest is lovely, probably has temperature limit options but it doesn’t have guest controls as far as I can tell. Indeed there appear to be only a small number of modern thermostat designs out there and up to now I’ve seen nothing that will fit our bill.
If you’re interested I suggest you start at the original “A thermostat Weekend” entry (there is also a very slight update at “The Thermostat Revisited”) Right now, I’m still making use of my ESP-GO code for the ESP (BitBucket) to form the base of a wall “guest-level control” as I have all the remote control we need in the Dashboard Thermostat – on my Android phone (or PC).
As always I was running out of inputs on the ESP8266 – needing “up”, “down” and “auto” controls and having only two inputs available I came up with a “press both buttons for auto” solution now supplemented with long-press options. In addition, manual settings revert back to auto after a couple of hours anyway.
And here it is, above, the first fully site-tested version of the guest control complete with temperature display, set-temperature control and time. I’m using existing ESP-GO code along with some new Nose-Red programming shown in the flow link above. You can see that there are two buttons on wires and there is a DHT22 sensor (the original featured a DS18B20 sensor). This then uses an inexpensive 320*240 ILI9340/9341 display. CS on the display board is grounded.
Here is a typical link for the ILI9341 displays…
Originally I used – – Ebay or AliExpress – I’ve used quite a few over time.
Here’s a link for the gauge..
I have a UK mains surface mount back box, I need to come up with a smoked perspex front panel; unless someone has a better idea. I now have better buttons and an ESP + uncommitted relay (NOT Sonoff, as the Sonoff relay is commoned with the power lines) to actually control the heating – the prototype is boxed and running with indicators.
Here for reference is the updated flow, using a relay ESP board called heating_relay…. the stat board you see above is called “stat3” in the flow. I’m now using a pair of my Node-Red Timeout nodes, delay nodes, Injects for testing and setup, Node-Red Dashboard and of course MQTT, function nodes and file nodes for storage,
This is what the original (now defunct) stat looked like in Chrome on a PC (frameless). Full 7-day control with hourly intervals, AWAY and frost settings. There were some bugs in this version to do with reset in the event of problems – hence the move to the ILI9341 displays.
As mentioned elsewhere I don’t distribute my ICONS as I’m not entirely sure what the licencing is on them – however, a kind reader has sent this excellent link to what looks like a marvellous open source icon library. All icons used in the little display board are included in ESP-GO firmware so we’re only talking about any icons I’ve used in Node-Red Dashboard – but hey, you can never have too many icons.
I envisage moving the entire hardware stat display to Tasmota at some point when I get to grips with Tasmota display software. BUT the ESP-GO version is in a production setting and has been working flawlessly since early 2020.
Of course in a simple installation not needing holiday rental ability, you could run the lot off the Node-Red-Dashboard stat page.
Update November 2020
The unit has been operating in the UK now since April 2020, completely unmanned – using a Raspberry Pi as the base for Node-Red etc and running on an SSD rather than SD. I’d planned a much shorter period but thanks to a combination of Brexit and Covid, I’m relying on remote access to this system using a VPN and the NR Dashboard display. The VPN has recently been remote upgraded to Wireguard (PiVPN) and at least up to now, all is working well including the AWAY facility for those few occasions when we’ve had Covid-related cancellations.
In case this saves a little time and effort, the missing gauge is stored in the myjs subdirectory of whatever is defined as your httpstatic directory in settings.js. The file is called gauge.min.js. The source for this is as documented in https://tech.scargill.net/thermometers/ – 2nd paragraph. You also need to change your default window sizes in dashboard
I used your code (hopely the latest one) from https://pastebin.com/SW9Ufyvi and imported it in Red-Node. But it doesn’t work. Mostly I can’t see the right dashboard. I think it’s because of missing the icons/images. Where can I download it. I read your text twice, but can’t find a hint.
Hi George, by the look of it that’s the code I’m using for the stat – but it’s a while since I put that up there… icons/images…. let me see… I’d need to store my icons/images folder on Google Drive – and its a large folder set – I no longer use Dropbox, so you might have to bear with me…
I have tried to summarize my experiences with 5V WiFi relays:
* ESP-01S + 1wire DS18B20 thermometer
* PSF B01 5V inching relay + 1wire DS18B20 thermometer
Maybe it can help to some users here
https://docs.google.com/document/d/1Pj20G2BikzPvPIfXx2EthDqC4OJXzJTUnha6EPcDSmA/edit?usp=sharing.
Hi Petr, I think you deserve a medal for tenacity in getting those modules sorted out. Well done! I decided to stick with the ESP8266 Wemos boards and separate opto isolated relay or SSR boards for controls. The end system is not as compact as, say, a Sonoff but is much more flexible.
Yes, you are right, It is the pain … 😀
Story continues 😀
Now trying to find out how to control DC12V 1A Smart Water Valve Controller Manipulator using Tasmota + NodeMCU + Motor Shield Board L293D
https://www.aliexpress.com/item/DC12V-1A-Smart-Water-Valve-Controller-Manipulator-Smart-Home-Automation-System-Valve-For-Natural-Gas-Leak/32896551413.html?spm=a2g0s.9042311.0.0.27424c4dwbqiKj
hello Pete
A bit behind on this one, as Iv been focusing on my Orangepi 2e.
Thought you might to see my attempts after your article on RGraph they are
incorporated in my sons house. Might be suitable for the temperature display.
Regards
I dont know if ASCII needed. Just copy and paste. It works always to me. Python, html, here…
Petr – I tried your flow…. sadly, on my Android phone – it ended up in the centre of my screen surrounded by a lot of white and with much of it truncated off….
That is the NR formating problem…. I am lost there and always experimenting kind of with it… I don’t understand how to keep more projects inside NR (when the projects are for different screen sizes). I use my NR to monitor our deep freeze store (not active elements/settings to set the values and so on yet).
You can see it here. http://maxbox.maxbox.cz:8000/ui/
node-ui / KotelnikFace
In the tabs you can see some of my other attempts (I am using NR for 14 days only, so sorry about it) I am experimenting with DataTables now and with your thermomete. On my home tablet I see thermometer properly ( https://photos.app.goo.gl/gmFPGTJZe1xmkwSx7 ) The only problem is, it does not hide the status bar automatically … but this is a problem of the all NR screens as far I know…
Thanks to this post I have discovered that outside of my network the Thermometer is not showing icon pictures. Inside my network it works fine.
I will fix it later on, I think It is the nginx stuff which I am experimenting with as well….
Can you share some experiences how to expose NR to the outside word (outside of the local network)?
Is the NR security for this OK?
suggest setting up a vpn and going in from there… openvpn or wireguard, choose one…
Yes, you are right with VPN. But what mobile phones? I have no experiences with the VPN on mobiles. On PC (Linux, Windows) only.
Generally I am asking about experiences/suggestions with NR built in authentication/security.
How to use the Thermometer from the outside of local network on the mobile?
Peter uses his phone to connect to his openvpn setups with easy, AFAIK… go in your device settings and see what types are available… for outside access i’ll go different way, telegram, alexa or google home connected to nodered and interfacing to it locally…
I see. Interesting. So, talking about Telegram, for example, you have your own “command set” and you are sending it to the NR? What about sending mqtt commands instead. I am new in this stuff, so sorry if my questions sounds dumb kind of….
Using Telegram seems quite straightforward.
I searched ways of using Whatsapp or FB Messenger because I already have them on my mobile but there is no free API.
I’ll give a go.
remember to set security, look Csongor video… once a bot is created, ANYBODY can access it… so better it responds only if the sending account id is yours… otherwise better NOT answering at all…
There’s a phenomenal amount of information in that video and much to digest. Very good find.
not only in that one… i collected a bunch of them a while ago, take a look: https://tech.scargill.net/waiting-for-peter-closing-2017/
and of course the new ones now on his youtube channel
I much prefer your fonts + degree symbol – and actually youir stat – what did you change?
I dont use SSL – but then I use a VPN to access it. PIVPN (ehich mysteriously stopped working last week after months of reliable operation)
I do not remember all my steps exactly.
I will try to check your new flow you have published today and make notes about my changes. Is it OK for you?
Hi Petr
I’m miles ahead of you – I remember now how I did all the formatting – I’m changing the fonts right now, I would wait a while if I were you – more changes to come – I just lost an hour fixing my VPN… all I need from you are those degree symbols. I’ve no idea how to do that… please…
° is VERY easy. Open the appropriate node (SET, newergauge, ..). where the temperature is propagated from, find the sign C and append a ° sign beside it.
For example in newergauge: units: “°C”,
Thats it. Easy peasy. HTH
PS: your “oneline” code setting is still not OK, there are some tags in front of it and at the end.
Already there – Aidan pointed mr to the right ASCII character.
Not changed my oneliner…. old.. working on bug fixing new display code.
Antonio – did you mean 3 backward quotes – they don’t do anything in WordPress… I just added a plug-in to do the job. Looks a lot nicer.
The NR group style (onliner) would be better I think…
Didn’t follow that, sorry
I have posted a question about it in to the NR group.
I was trying to attaching my attempts to modify your code as a txt file here. No success.
How to post it here?
Please explain – I’m having difficulty putting the flow in any sensible format into WORDPRESS.
i think it’s best you put them on bitbucket and share the link… less clutter in article
https://discourse.nodered.org/t/wordpress-plugin-oneliner-code-style-similar-to-nr-discussion-goup/8359/2
Does it help?
I will try to ask in WP anyway.
Peter, after bunch of evening experiments, this is my answer.
http://www.zskratonohy.cz/one-liner-node-red-test/
BTW, the NR forum and WordPress forum did not provide solution.
If you like it, I can give you detailed description.
I like it- yes please, what would I need to do?… (I’ll check tomorrow afternoon – shopping in the morning)…
😀 😀 😀 😀
what tag did you use in comments?
Its a kind of magic…. 😀
I will let the secret know to Peter only, when he returns from his shopping in the afternoon 😀
Anyway, plugin required to do this trick is installed already in Peter’s WordPress. It is the same plugin I wanted to recommend to him. It is necessary to use the proper tag, exactly as you are asking for.
Hi Petr
i could not find the exact hjighlighter you mentioned – I have Syntax Highlighter Evolved 3.5
All of the ones out there have one or two words in addition to “Syntax Highlighter” – just want to make sure we’re on the same page. Back this afternoon.
AND THE MAGIC FORMULA IIIIIIIIIIIZ:
Yes, we are on the same page. I have found this plugin as well yesterday night and I was doing bunch of setting experiments.
Finally, when I found how to use it, was trying to put all instructions here (including the tag example!).
In that moment I have discovered my tag example is gone 😀 This happened because on your WordPress the appropriate plugin was installed already.
I am attaching the tag example as a picture. Otherwise it is not visible here (and I don’t know the tags to put around example, so it is not accepted as a tag by the WordPress plugin.)
Looking at the “oneliner” on your page… it does not work properly.
My experimental setting of the SyntaxHighlighter plugin in the attachment.
You can find some exampl tags down on the plugin setting page.
https://www.youtube.com/watch?v=-gZ6-6RbSEg
😀
I LOVE this video 😀
look for the full video, there are many of them, really 🙂 very funny
Peter, check article code, there’s html code mixed with json
Petr – I quite like your little thermostat
Thank you. BTW it is all your work I think 😀
I have ordered ESP and display and other parts two days ago and I will try to follow your way. Not easy to me. js is the HORRIBLE experience to me.
I am a Pythonier and I am seriously lost inside all those brackets, semicolons and other stuff. How the hell you and all other people can write the code in it?
lol, those who use js will tell you the same about python indentation 😀
I’m the other way around – I’m used to C and Javascript – hate Python insisting on exact indenting. Now, Javascript that wasnt case-sensitive would be nice as I started life with BASIC.
Sorry – original display now junked… now using ILI9341… much better reliability. Using one with touch panel but ignoring touch panel as not supported in my code.. they were CHEAP from AliExpress. Wait for new flow – fixed lots of bugs. It is VITAL I get this right, hence willingness to change. It has to go in the house in the next week on test until April – from there it has to work 24-7 for at least 6 months – Original display wasnt starting up reliably, This is WAY better. Also fixed settings backup issues – a silly problem caused by switching some vars from global to flow. All sorted. I’m not seeing a picture.
I see you have fixed the flow code and now “oneliner” is sitting on your page. Great!
Display: I have ordered
this one.
So you think not to use it and order
a new one and wait for your updated code?
BTW: I have ordered those two relays for experiments:
https://goo.gl/q32vvT
https://goo.gl/7JYGW4
and a Water Valve Controller Manipulator
Your post above:
What do you mean in the sentence: “I’m not seeing a picture.”?
like the code blocks in here, for example: https://tech.scargill.net/i2c-for-everyone/
or the gray block here: https://tech.scargill.net/a-new-gpio-in-town/
you had a good code viewer a while ago here on blog, don’t know its plugin name…
I think it should be “oneliner” as they use it in NR forum.
See the example here (first post)
https://discourse.nodered.org/t/error-parsing-datas-from-1st-function-node-to-a-2nd-function-node/8355
I think I found a way – the big problem was \n arrearing in the code instead of carriage return – fixed that. I’ve formatted as Javascript – but actually it’s a complete mix of CSS and html and javascript… still – what I have now is better (refresh your browser).
THAT’s the plugin i was talking 🙂
good
Correct Antonio, thanks for filling in that detail. Here’s another (resolved) complication.
1. Even though ENABLE isn’t used on those displays – the SS pin (GPIO15) is used by SPI and so can’t be used elsewhere. Also, even though MOSI isn’t used, SPI insists on controlling that (GPIO13) also. Which leads us to the additional complication:
I’ve always tied processor reset to display reset. This works well for other displays but these litle (what I call QDTECH) displays are not always 100% happy with that and I’ve only just realised that. Hence later this morning I’ll upload to BitBucket a mod I’ve made to ESP-GO – which will, for the init code for these displays only, momentarily set (otherwise never used) GPIO as an output and to ground, then back up to Vcc, before setting it back as an input. The diaplay init code is now delayed by 250ms to cater for this… hence ensuring a perfect display startup which needs to occur whenever the display logs in (ie the display may have been disconnected or otherwise rebooted) OR Node-RED starts up.
BitBucket is now fully updated. I’m working on a way with 2 diodes to simulate a third input on the stat with a third button but no extra bits – but it looks like the internal pullups on gpio4 and 5 are too high to trigger the diodes… so it’s looking like 4k7 external pullups right now.
Trying to import your code to NR, but dashboard is not showing up properly.
How to fix it, please?
BTW, low voltage switch is available already at Sonoff and on Aliexpress.
https://www.itead.cc/smart-home/inching-self-locking-wifi-wireless-switch.html
read original article, you must set the dashboard grid size to a different value, can’t remember now if it’s 42 or 48, anyway should be there…
The setting is not a real problem in my case. I have:
1×1 Widget Size 100 100
Widget Spacing 6 6
Group Padding 0 0
Group Spacing 1 1
Dashboard Group Node “Stat” width is set to 6
In Peter’s article
There is recommended setting for Widget size 52×52
Now I understand better the main problem is with the following:
* NR Dark Theme: some black fonts are not visible (Day, Frost, Away …)
* Gauge is missing, because Peter has it installed locally
* icons are missing (Peter is describing he is not distributing them – pity, but I understand)
One more hint: in the blog-post above, the flow code is not formatted, so it is not easy to get in to the clipboard.
Anyway, thanks for sharing your work, Peter
report dark theme problems to his author on his github
about gauge and icons: in articles is said where to get them, maybe you just need to dig a bit in articles themselves and their comments…
find them and report to Peter so he can make them more “visible” 🙂
i don’t think clipboards cares AT ALL about formatting… just paste there…
All understand – I will report.
About the code: look above in the article and try to Ctrl-C 😀
It is not provided (I think by mistake) as the link.
There IS a recommended grid size – but the phone I was using at the time I first did this was not having the recommended grid size. Ii got the flow code out of the clipboard so it will go back in.
Icons – as I’m not 100% sure which ones were licenced for general use it woul dnot be nice of me to put them up there in a library. All are commonly available.
Thanks for reply, Peter. I understand all reasons and I didn’t want to bother you with such a “rubbish”. My comment was mainly to find the way and give a feedback to others following your way.
The grid is only “cosmetic” issue and can be solved with few clicks.
icons – I have found open source icon library with the icon naming similar to yours:
https://github.com/ioBroker/ioBroker.icons-open-icon-library-png
For me it works partially.
Gauge: will be investigated 😀
The only small thing: please change the “flow code look/format” in the blog-post above …
Changes in the path to the fonts in the following template nodes:
Settings section: more, mmore, up, down
Changing some styles and fonts. adding ° (degree sign).
Now looks wee better in my Dark Theme. Thank you.
Next week I will investigate “The Gauge” 😀
look the “HERE” link on the left of the gauge, you’ll find the javascript lib you have to put in your public folder
hmmm… thank you..
downloaded, paths properly set, not working.
How to investigate where is the problem?
first try if the js is included in the page, and it’s loaded correctly or returns 404… google chrome’s F12 is the way 🙂
It looks js is not loaded.
I have double checked the path. Path is OK.
All files have reading rights.
look at the source code of that page, search for the js url, click it, if it returns 404, path is wrong, there are no other issues i can imagine…
in my system the js file is under
/home/pi/.node-red/public/myjs/gauge.min.js
which is included in flow as:
/myjs/gauge.min.js
available from web as:
http://IP:1880/myjs/gauge.min.js
as i’ve this in my settings.js
httpStatic: ‘/home/pi/.node-red/public’,
.js is loaded properly.
If i change the name of js file, in the newergauge template, then I get the 404 error:
app.min.js:20 GET http://192.168.0.210:1880/verejne/angular-canvas-gauge-master/angular-canvas-gauge..min.js 404 (Not Found)
Problem is here:
(function(scope){
scope.$watch(‘msg’, function(msg) {
gauge.value=msg.payload;
// if (msg.units!=””) gauge.units=msg.units;
});
})(scope);
var gauge = new RadialGauge({
Uncaught ReferenceError: RadialGauge is not defined
try old flow on original blog article, i still have that deployed and it works, start from there, so we can understand where’s the problem…
Got it.
The problem is, the “HERE” you are writing abut, goes to old web page… 🙁
Even I have found the proper page:
https://canvas-gauges.com/download/
I started my testing with CDN link and maybe my server was slow to download it – I was not successful.
Finaly, I have downloaded the
https://canvas-gauges.com/download/latest/all/gauge.min.js to my machine and it works.
Thank you
oh… Peter, you better add this new url to the article, then… i suggest to include the flow in “code” tags, too, for better reading… 😉
Ok spill the beans, how did you get that degrees symbol…. I want it…
Not convinced about the dark theme with the white boxes, but I do like the font change and degrees symbols.. How?
It is matter of taste of course. I am not convinced about the size and the dark theme as well.
It was the way to learn. I think I didn’t do all the changes the proper way. It is better to do changes more general (styles), than change the code directly in td tags for example.
How to put
tags here in the discussion, so I can include my NR flow here?
Screen shot of my attempts…
share on pastebin… then link url
The code of the thermometer with the linear scale
https://pastebin.com/SW9Ufyvi
I’m playing with grid size now – that will vary from phone to phone, originally the phone I used had an aspect ratio like old-fashioned Apple, today many phones are more like 18:9 or even longer. Just adjust grid sizes…. unless you have some other code over which you have no control.
Thanks. We went with a Radio Thermostat CT80 for our curling club warm room in the USA. It has remote control features via wifi, a daily program, and also has “lock” capability. The lock will allow guests to alter the temperature by as much as +/- 4 degrees F from the program, and reverts to the program at the next scheduled program changepoint. This has been a win since it allows folks to have some control, but they can’t go crazy. And, if there are special requests or extended downtime, we can remotely set the thermostat to idle. After three years, the unit has been totally reliable.
This looks interesting – available to use on 220v in UK? – andwhat does it output? UK heating is usually 220v do need uncommitted contacts..
I have summarized my experiences
link text
I’ve been using a Shelly one as my relay for a similar project, it’s perfect for this
yet another device with yet another app. I just need something to respond to mqtt and pref: using my own ESP-GO or Tasmota – no interest in yet another standard… also not seeing this from the UK? AT $9 each plus taxes and duty that would be expensive. UK supplier?
I’ve flashed tasmota on mine so I can connect it up to node-red via mqtt
I bought mine directly from the Shelly website
if that was your only concern, you could have just enabled mqtt in stock firmware and that’s it… as soon as you enable that, you’ve no more shelly cloud service, and you could interact with it via mqtt, native in stock firmware…
in italy there’s a guy on facebook which takes tons of these devices and then sells them locally, so in 2 or 3 days you can have them, maybe someone in UK, too… i paid my shelly2 24€ shipped, and i bought it just because i could hide it in my 503 switch wall mount, nothing exposed, and app is very well done and has native “curtains” mode… works without issues on 1st connect (even the physical buttons)… i hope others will do same size devices but cheaper… the 2 is now extint, 2.5 is just out: https://shelly.cloud/shelly-25-wifi-smart-relay-roller-shutter-home-automation/
the good of them, aside from small size (2.5 is even smaller than the 2, while having 10A relays instead of previous 8A ones!) is the per relay power monitoring… for example, i let my “curtain” shelly to calibrate itself: it went full off, recognized that by the 0W power consumption, then went full closed and marked that, too, so now i can say: “open curtain at 50%” and it just does that… nothing visible on my wall, all hidden in the 503 italian wall mount
Ecobee supports limits and guest access controls, though they are kinda expensive and I know the appeal of making your own. I was using a DIY thermostat based on an ESP + a generic Sainsmart relay board, it was a fun project that I used for close to two years before deciding to get the Ecobee.
It is interesting that you chose Ecobee. I’m in Perth, Western Australia and so it’s cooling I need at the moment! I bought and fitted an Ecobee a few years ago to my reverse cycle air conditioning. I had to order it from the US, and it wasn’t cheap! Fundamentally, it’s very good although the biggest problem is that Ecobee quite deliberately has effectively told me that I’m on my own’ as they won’t support anything outside of N America (It is a Canadian company). The major irritation of this is that – because of my longitude – the ‘weather forecast’ is 12 hours wrong! Yes, Perth gets hot but it’s not 36 at night and 22 in the afternoon!! The web application seems good, and easy to use, although, again, due to perhaps being in the southern hemisphere, it doesn’t seem to want to keep records of my usage (‘Whadda mean, you want cooling in January?’). Would I recommend Ecobee? Well, maybe if I were in the US or Canada, but otherwise – caveat emptor! I do run Home Assistant (sorry, Pete!) here and it plays well with that – but I’m really enjoying reading the development saga of Pete’s home-made thermostat!
there’s nothing to be sorry, home assistant and nodered can coexist beautifully, nodered HA nodes are great, and you can have the best of both worlds: the ENORMOUS device support of HA and the way easier automation management of nodered… 🙂
Ah, I didn’t realize Ecobee was limited to NA. I imagine importing it to the UK would probably be pretty expensive.
I’m not actually sure if I recommend them, either. I do actually like the device and its core functionality works well, but their API service is a little flaky and their options for local-only API control are lacking (Homekit only). I also use mine in HomeAssistant and integration is pretty good, but I don’t like the imposed 5-10 minute lag on all data (especially limits the usefulness of the motion sensors). The only reason I mentioned them really is because they do have fairly comprehensive controls and access limits for landloards, which Peter was talking about.
Making my own was fun and it worked pretty reliably, but it was kinda time consuming to program something reliable considering how expensive mistakes can be. I ultimately had something pretty cool (pun intended), with remote sensors with arbitrary weighting that could be updated throughout the day over MQTT, but also with failover to standalone if something went wrong, a nice UI etc., but nowadays I don’t have as much free time and it had a couple of minor bugs/shortcomings (still needed to make a pretty enclosure), so it ended up getting replaced with something commercial. I’m moving soon, I’m still mulling giving the Ecobee to my father and replacing it with a Zwave thermostat if I can find one with remote sensors (Ecobee’s real killer feature, especially when I bought it when remote sensors were fairly unique to them).
Before I decided to press ahead with my own, Ecobee looked like it might be worth investigating, of course I missed the bit about them not doing the world. Good job I didnt go down that route. My “home-made” version, once I get a decent cover for it (ALWAYS the problem) is going to be in practice a lot more useful than the fancy and overly expensive offerings I’ve seen commercially. The Salus is very pretty but absolutely useless… It uses short range radio and cant even handle 2 cottage stone walls – if it loses the signal, someone has to be there for someone to reconnect it- utter rubbish.
I’m about to make some improvements, for those following my stat project. “frost” is historical – the AWAY function does the same thing better – the space could be better used for a “weeks” option for AWAY timing. I also want cold weather pre-empting – air source heating takes a lot longer to reach temperature when it is cold outside – it isn’t heating water at room temperature to hot like oil systems, it is trying to heat BLOODY COLD air (you can imagine the cold draft outside).
My only real advice is to make sure the thermostat can run standalone as a standard dumb thermostat if it gets disconnected, or at least have it check for a timeout to the server and fail safe (i.e. off). Not quite sure from your post how much of the actual control logic is being done in NodeRed versus on the device itself, but you really don’t want a disconnect from the server to cause your HVAC to get stuck turned on.
Oh, and you probably want to include some hysteresis and minimum run time to keep it from short-cycling your HVAC. Implementing minimum run times in a robust way with all the edge cases covered was probably the most annoying part of my code…
Hysteresis sorted long ago, thanks. Most logic done in node-red – ESPs just follow my Node-Red rules which say turn heating on for 5 minutes – and that is repeated every minute – if no repeat, heating turns off – unless esp relay jams on. The latter has a software controlled fladshing light and a software controlled steady power light. if the heating fails off, we have a real fire and a pair of oil heaters available. Can’t cater for ANY eventuality but I’m doing my best.
Looks really great, one question, have you considered using ePaper for the display? Al the Best.
I like colour – and compared to everything else the saving in electricity isnt worth bothering about. ePaper is also more expensive than LCD and doesn’t glow in the dark?
Hi Pete,
Could you please kindly elaborate your comments on the 2 types of TFP listed in the article ? Is the 1st one bad ?
By the way whle both description say they are SPI, I believe it is indeed IIC. Am I correct ?
Thanks
The first one I just don’t support in ESP-GO – proably nothing wrong with it. Both are SPI.
having a basic sonoff available, it could be modified in a clean contact without power lines.
https://support.itead.cc/support/discussions/topics/11000004539
or
or use a wemos mini with a relay board on top… clean and compact…
but better use a double or triple protoshield and not having the temperature sensor in the hotter middle of the 2 boards…
I need a shield with 2 holes per hole and extra ground, 3v and 5v
take the top right one, then just bridge the pin holes to the central ones you need…
for power and gnd, i bring them in the 2 bottom lines and bridge them as needed
right, keeping the ESP-GO code
This is looking good Pete. I was looking at something pretty similar myself recently for my holiday home rather than having to use a browser front end. I’d got it narrowed down to something like this or a Nextion/MQTT based setup. As an ESPEasy fan/user I have also been playing with a Wemos D1 Mini / Rotary encoder / mini OLED setup trying to drive as much of the logic as possible via the ‘rules’ engine within ESPEasy but with mixed results.
I’m watching your (much more impressive, it has to be said) results with interest.
Cheers!