Auto heating control - not easy :)

Really? I thought the ā€œSaga of Jiranā€ would become an international bestseller :rofl:
The number of people dropping by here just to see what other idea has popped into his head today :man_shrugging:

1 Like

I donā€™t have any time triggers, unless you count the 1 second timer that I use to wait before sending the command for my heart pump. Everything happens pretty much in real time.

Thatā€™s even better ! :+1:

BUMP HASS up and running with hassbian latest :smiley:

Small step for every proffesional heater controller but BIG JUMP for me :smiley:

Jiran, what are the names of your rooms ?
and which are the 3 that set house heating to on ?

Edit: just clarifying some points: -
You say if fire boiler > than 50Ā° then use that - why ? is not 40Ā° useful as well ? ie these are not serial systems - They are in parallel only ? and heater valve ā€˜onā€™ diverts from ā€˜tankā€™ to ā€˜heaterā€™ ?
The pump pushes into both the tank and the heater, but flow only goes through the non bypassed item ?
What is emergency ? tank > 70Ā° ??? and emergency resets at 68Ā° ??? (I think these figures need to be hard coded.
It is also safer to open ALL valves (even if rooms are unoccupied) during an emergency to maximise heat loss

Phil is definitely a Home Assistant legend. I also have several of his posts bookmarked.

At some point someone clued me into the whole startup state change thing. Most of my automations now take this into account but I have a couple based on template binary sensors where the only way to fix the issue (that I could come up with) of automations firing on a restart was to delay them on a reboot long enough that the binary sensors have registered the proper state. Iā€™ll have a good look at that post and see if thereā€™s a method there I didnā€™t think of.

Which leads me to another thought. There are a handful of very, very informative posts in the forums. I can think of several by @Tinkerer, @pnbruckner, @petro, @finity and even a couple from yourself that have helped me out immensely since I started out.

Some of these posts obviously take a lot of time and effort to put together, yet they get missed because they sit in a thread with an unrelated obscure title. I think it would be great to have a special section for these posts similar to r/bestof on Reddit. Not the whole threads - just the relevant post. We could have some kind of voting or nomination system to highlight posts that we think should be added to the mods.

I think it would be very helpful to have all these ā€œbest ofā€ posts in one place thatā€™s easy to find and reference and also to point new users to. It might also save a lot of the repetitive questions on here.

BTW the ā€œTOPā€ sorter doesnā€™t really work for this, it really just displays the most active posts.

Thoughts?

Edit: If Iā€™ve forgotten any of you other HA guruā€™s on the list here it wasnā€™t intentional! (@Mariusthvdb, @Mutt, @ludeeus, @thomasloven )

3 Likes

Jason you shouldnā€™t tag people with a shotgun
Iā€™ve not had time to read the above (he says engaging in a novella) but I will soonā€¦ butā€¦
Iā€™m not a guru, I barely have started learning yaml, Iā€™m just a selfish b4574rd who helps others so I can learn more.
Phil has been at HA for just over a year now, surprising isnā€™t it ?
Taras only uses HA so he can help on this forum (he uses another platform)
Finity Tom, and Petro are the other notables in my book, but thatā€™s because Iā€™m only slightly qualified to answer certain questions and I overlap with those goys, there are many, many more I have yet to interact with properly like ggravlingen who has written the Ikea blind integration - these ALL are smart guys who donate their time for others (or maybe they just wanna learn too) Taras says itā€™s because he doesnā€™t have a life but I secretly (not so secretly actually) think itā€™s because he likes puzzles and us dumb schmucks are certainly that. They have all helped me tremendously and Iā€™m just doing a bit to help payback (giving the likes of Phil more time to support his life360 component and maybe some other stuff)

Edit a 2nd part of novella - I love your idea, but I think it would be almost impossible to implement. Iā€™ll paint a usage case, what I thought was a diamond idea a year ago, I may think was just common sense today. To be helpful it needs to be pertinent to its readership and I donā€™t know I need a template to answer this I just need a dang light to come on. So Iā€™ll search on that (some users donā€™t even search)
How many times have you come across a thread that says, ā€œsomebody has probably asked this beforeā€¦ How do I turn on a light ?ā€
When I come across a piece of code I donā€™t understand or I think will be useful, I copy it into a ā€œneat stuff.yamlā€ file just in case. I peruse that (after Iā€™ve been puzzling a solution but before posting a question l I guess everyone is different though.
I would point out though that truth is not democratic ie. Itā€™s very rarely what the majority of people think it is. So the same would apply here. You, me and Taras may think ā€œthis postā€ by finity is absolute genius, but Phil may argue that its not explicit and could cause errors if capricorn is in ascendancy over McDonaldā€™s, and heā€™d be right but voted down.
I think instead that a training manual on HA would be more useful, but again thatā€™s a moving feast as HA only changes if thereā€™s a ā€˜yā€™ in the day.
I dunno, I really donā€™t have any answers
I like your sentiment but we are constrained by the mechanisms of the forum platform we use, Iā€™m no longer interested in what platform it is (unlike other forums in the past) itā€™s a given, we arenā€™t gonna change it easily, so I just live with it. Probably why some people take stuff to reddit. :man_shrugging:

TL;DR : - In Summary,
I aspire to be as helpful as Phil, Teras, finity, petros and the like, not because I want to be a guru but because Iā€™m selfish and want to be able to solve any problem that HA throws my way (cheques should be made payable to ā€¦) :rofl:

2 Likes

Did not read the whole thread through, tooooo long but here is my heating approach (in Node-RED):

I expressed my opinion on this issue elsewhere. In a nutshell, the fact some aspects of Home Assistant behave differently at startup, thereby requiring explicit mitigation in automations and template sensors, is a deficiency requiring attention before a 1.0 release. (IMHO)

I must sound repetitive and boring to some people by now but here I go again: startup is handled better in Premise (the software Iā€™ve used since 2008). I wasnā€™t even aware of potential startup glitches until I began exploring Home Assistant (and openHAB). To be honest, Iā€™m not certain of the technique Premise employs (Iā€™ve had never a reason to investigate because there are no special concerns at startup). At startup, Iā€™ve never had things come up in an unexpected state (or no state) thereby leading to the triggering of automations for unanticipated reasons. Itā€™s just not a ā€œthingā€ in Premise. Anyway, the upshot is that users shouldnā€™t have to mitigate for the softwareā€™s ā€˜unique waysā€™ occurring at startup. The hurdle may be that implementing the solution may be too disruptive to Home Assistantā€™s architecture. :man_shrugging:

1 Like

We really just need a built in resume-state on startup that doesnā€™t trigger a state change.

3 Likes

Jason you shouldnā€™t tag people with a shotgun

Lol. I normally donā€™t but this was just a handful of folks who Iā€™ve noticed have had really helpful posts over the couple years Iā€™ve been at this now. Since they are some of the most active and informative I thought some of them might have pertient thoughts about it. I also didnā€™t realize ā€œshotgunningā€ people was bad etiquette. It has been noted. Iā€™ll go stand in a corner for a while and reflect on my sin. :upside_down_face:

what I thought was a diamond idea a year ago, I may think was just common sense today

Thatā€™s exactly of my point though. A lot of stuff comes second nature to us now because we either come from coding backgrounds or weā€™ve put all the pieces together and dealt certain things a hundred times now. The learning curve to get there was pretty steep though. I actually have some prior coding experience and it still takes me while to wrap my head around some things. That can be very discouraging. How many people have you seen threaten to rage quit HA because they were frustrated about something? I think HA is awesome and it has a great community behind it.

I would point out though that truth is not democratic ie. Itā€™s very rarely what the majority of people think it is.

True enough but I think that if a best of post was highly upvoted particularly by a lot knowledgeable folks on here that it would be a pretty good indication itā€™s something that the mods should include. Some things are also pretty black and white. For example finitys post about dealing with timestamps in HA. For someone with a python background itā€™s a no brainer. The rest of us could probably benefit from a little hand holding in that area.

This was all only a fleeting thought of something I thought Iā€™d find useful. Iā€™m not overly vested in the idea. Iā€™ve thrown it out there but if it doesnā€™t get any traction no biggie. Thank you for your thoughts on it. Like yourself, Iā€™m only here trying to pick off low hanging fruit to take some the load off the guys that could be answering the hard questions (or actually working on HA). I also learn quite a bit doing it and itā€™s also gratifying to help people out.

Anyway it seems Iā€™ve kind of hijacked the heating system thread with this here. So Iā€™m going to go away now. I probably should have started another thread for this but I donā€™t always think so clearly at 2 in the morning. Perhaps I should just stay off the forums when itā€™s past my bed timeā€¦

Cheerio :slightly_smiling_face:

1 Like

Some people just donā€™t hear it the first 1000 times, keep plugging, weā€™ve never told you to shut up :rofl:

Not sure on this one, you meet the love of your life, witty, clever, fun to be with, great body with discipline to match - then you find out she bites her toenails in bed. Whatcha gonna do ? (I just pick my nose while I think about it) :man_shrugging:

Love that whole paragraph, spot on ! :+1: :rofl:

Itā€™s not as if Jiran hasnā€™t posted some irrelevant stuff in here already AND they do call this a community ! :wink:

AND we are still waiting for him to come back with some answers !

Oh my! I probably could have done without these visuals this morning! :face_vomiting:

BEHOLD @Jiran is BACK and loaded! Now HASS running sensors, switches etc. ready. So now I need to create some automations. I think automation is the only usable way in HA for my purposes. Stiil I donĀ“t know how automations run. Does some CRON or something starts it or how it works damned?

Anyway. Now I need an automation which will ask every room if it want to start heating. In those rooms there will be different sensors but I will use GENERIC THERMOSTAT for each. So I hope this module has some kind of output which says ā€œI want to heatā€ :slight_smile: Or maybe I donĀ“t need to ask those thermostat as their On output will be switch to ON command (which will open room heating valve which will allows heated water to flow into room floor). So I can only ask if SWITCH dedicated to ROOM is ON or OFF.

Any help here? How to check if generic thermostat wants to heat? How to check multiple thermostats and if ANY of them wants to heat turn ON another automation or script?
Thank you very much.

Oooh what a silence nowā€¦ Anybody any idea or a tip for similar automation?

check the docs? it will tell you that information.

I donā€™t use any smart thermostats so I canā€™t help with that.

Hi !

Just jumping in here, I had no time to read everything. If I understand it right, you just need a way to tell your central heating to turn on if any of the valves wants hot water ?

If thatā€™s the case, you could simply put all your valves switches in a group, thus the group will be on when any of the valves is on. Then you can have this trigger the central heating.

Hereā€™s a draft :

group.all_valves:
  - switch.valve_room_A
  - switch.valve_room_B
  - ...

automation_turn_on_central_heating:
  trigger:
    platform: state
    entity_id: group.all_valves
    to: 'on'
  action:
    -> turn on central heating

automation_turn_off_central_heating:
  trigger:
    platform: state
    entity_id: group.all_valves
    to: 'off'
  action:
    -> turn off central heating

Hope this helps :slight_smile:

OH great idea. Thanks. I didnā€™t know about groupsā€¦ It is little more complicated in my case. There are some conditions.
Or better say this is the heating part.Not sure if do it using automation or script:
diag-wait

So, what did you end up doing?
I had a similar project to build this winter, so I ended up like this: Multi zone heating control with open window detection for opentherm boiler
Take note, I wanted to send temperatures to the boiler, not only on/off commands.
This can be extended to any number of zones. It will look awkward, but it will work :slight_smile: