This one is a bit abstract - looking for high level feedback on whether HA is a good solution for my project.
I’m working on an automation system for my skoolie (school bus converted to RV). It’s pretty different than the typical home automation system, but I stumbled upon this world of home automation hardware and software solutions and they seem to check a lot of boxes. Right now most of the system is analog, in my grand vision everything is digital and can be monitored/controlled remotely.
Be aware most of this is useless and just a fun engineering project. Sorry if it seems silly, I think that’s what keeps things fun!
www.spaceforceone.io for some context.
It’s probably best to just list out the architecture:
- Must be totally offline and self-contained. This is non-negotiable.
- Lots of GPIO. Currently there are ~40 on/off switches planned to control various functions. Ideally some analog pots too for brightness or similar functions. Going for an airplane cockpit aesthetic; more switches the better.
- A few relay boards distributed through the vehicle for accessories such as light bars, aux fans, etc.
- A thermocouple (max6675) for transmission temperature monitoring. The amp board can change, if it matters.
- An accelerometer logging data on which an FFT is performed “live” to display a rolling spectrogram. Obviously this is extremely computationally expensive and not a normal function within HA. Maybe there is a way to do this in python then display it in the same dashboard as HA?
- Dashboard for monitoring aforementioned sensors.
- House light control through hardware switch or app
I’ve set up HA on my Rpi4b and gotten the thermocouple logging data through an ESP8266. This was easy enough and made me excited about HA. All of the front end work I dreaded looks taken care of. Also full disclosure, my background is in mechanical, I have a little Python experience and plenty of tinkering, but this project is easily my biggest undertaking yet. Anything that can same me lines of code is appreciated.
Primary competing architecture considered:
Rpi running the show. I2c bus with differential lines (interference is a big problem, 120VAC is everywhere) for sensors and relay boards. Multiprocessed or multithreaded python code to handle the IO, spectrogram, other sensor processing, and GUI. Nanpy for large amounts of GPIO local to the Rpi. Other I2c based GPIO expanders could easily be used for other needs. These seem useful.
Routing more wires around the bus is a turn off. Throwing ESP8266s around sounds great! As long as the network can be reliable (am I kidding myself?), this sounds awesome. It seems like there is an enormous amount of support for home automation solutions, it would be great to leverage this.
I’m concerned about integrating my system. Largely that home automation normally needs a refresh rate on the order of minutes to hours, whereas I’d like seconds to minutes. Also I’d like for HA to run on an Rpi which also broadcasts the local network as an access point, instead of connecting to an existing network. Is HA just a bad fit here? Help a newbie out.