Hello,
I’ve been in the process of migrating all of my stuff to HA. I have been using openHAB for the last 10 years and do have a pretty complex set of automations.
In order to keep the work as low as possible, I’ve been wondering about a few things which I haven’t found out yet.
So for example, I have a set of rules to automate my rollershutters based on lightlevel, sun position (azimuth/elevation), current wind and season. E.g. a rollershutter shall go down in winter only 50%, in spring 80% and in summer 100%.
In OpenHAB (OH) I have been able to create devices/variables e.g. LivingRoomAzimuthStart & LivingRoomAzimuthEnd.
One automation was triggerd every morning and updated those values based on the actual season.
And the actual automation for the rollershutter then was just checking if we have reached the position of the sun, if lightlevel above threshold and wind below and if yes → move the rollershutter to the required postion (again different per season).
That made things quite easy and simple and I have no idea how to do this here. The best case I can think of would be like a container/virtual device called e.g. RollershutterValues with entities, LivingRoomAzimuthStart, LivingRoomAzimuthEnd, LivingRoomPosition etc. where I could based my automation on and another one which is overwriting the values with the planned targets based on the season.
Or is there a much simpler solution to this?
And the second thig which is also quite crucial for me a kind of “MasterSwitch”
and if this is set to off, HA is not doing anything to my actors (open/close, on/off etc).
In my old automation, I have built this in in every rule and checking if the Master is on or off - this is to stop the system in case needed or not doing things in an uncontrolled way. I always had two or three instances running in parallel (one production with the current code and one development where I also made updates etc.)
For this I already wrote a small function with a helper created. I would just need to place this function module (in NodeRed) at the beginning of each of my automations. However again, there might be an easier solution for this I haven’t found yet.
Thanks for your hints and help already. I am really looking forward to re-do everything and make it even better than before.
BR
SJ