4 ms·
I've tried a few different home automation things including Home Assistant and OpenHab. I feel all of them are overly complicated and you're pretty much trying
by procaryote 1y ago
I've tried a few different home automation things including Home Assistant and OpenHab. I feel all of them are overly complicated and you're pretty much trying to code using configuration, which worst case is YAML
A lot of the complexity seems to come from being clever around performance, so the thing only reacts to new events or commands and doesn't do more work than it has to. This just seems like a lot of over-engineering. If you don't have thousands of devices, or run your controller on battery, performance shouldn't be an issue.
I ended up using an existing home automation thing just as a bridge to smart devices, and wrote a service to control what should be happening when. Every incoming event or every 60s, I just rerun a my thing that determines the desired state, diff it against the known state and emit commands to make them match
So my home automation ended up being stuff like "if someoneIsAtHome() and time > XXX and time < XXX, these lights should be on: "
Add a frontend for overriding the default and I have a system where I can just change my code if I want the behaviour to change.
- cassianoleal 1y agoI agree. It shocked me when I first started that you couldn't do desired state automation. I ended up creating poor-man's controllers in automations where there's a timer, a switch to override the automation, triggers for many different events - like at first start, then when the timer runs out, others - just so it would ensure things wouldn't just get out of what because one event was lost, or an addon was down for a minute, or I had a networking glitch, you name it.