******************* Original post *******************
Hello everyone. Providing an update after I’ve solidified the problems I was experiencing. Here’s an overview of what I have exposed from my vehicle.
Along with updated GPS location.
Control System Overview
I have access to a modem with cellular access that I am using for a constant data connection. This modem is plugged into a Pi4 running OpenWRT with a Wireguard connection back to my home network. The ESP32 used for controls is connected to the WiFi AP of the Pi4. The ESP32 has constant power from the vehicle battery. The modem and Pi4 are powered from an external source which I will expand on.
Original Post Problems
I originally had problems with the CAN bus shutting down randomly and the ESP32 rebooting. Analyzing forum posts and logs, it appeared that the CAN bus was overwhelming the log service. After changing
logger:
logs:
canbus: INFO
I didn’t experience anymore problems. This also updated the problem I had with the updating of states.
Power Management
After figuring out getting a constant connection with the vehicle, powering the devices became the top priority. I solved this with an EcoFlow RIVER 2 Pro. When the vehicle is on, all control systems are powered by the vehicle battery and the vehicle charges the battery bank using the 11-56v input. When the vehicle is off, the modem and firewall switch to the 12v output from the battery bank. I have a capacitor hooked up to keep constant power during the relay switch between vehicle power and battery bank.
The system consumes about 5-6w when in standby. With the battery bank, I get about 5-6 days of the system running. Eventually, I will be running a script on the ESP32 that will only turn the modem on every hour or so when the vehicle is off to provide an update of location and check if there is any updates from HA.
Conclusion
I will post more updates as winter comes and I get more time along with the overall controls diagram now that I have everything solidified.
Let me know if you have any questions or if you have suggestions.
Automate on!
DaviBoi