I made an automation that should turn on a dehumidifier only if there is solar power production OR the humidity is quite high. And if neither is true, to turn it off.
Now, my big fear is that under some circumstances this may lead to rapid toggling. I have made some attempts to avoid this, but I have a hard time judging whether they are logically valid.
Also, the boolean may be redundant? Not sure. See screenshots for my two automations.
Also open to radically different approaches to achieving the same thing.