Control of a physical switch on my inverter and voltage sensor

Hi guys

I have an inverter at home that is not smart. We have frequent power failures here and I use it for that reason. However, I don’t want the batteries to go below 50%

So I am thinking of putting a voltage sensor on my battery bank so that I can setup an automation to switch the inverter off when the voltage drops to a certain level. I think I will be ok with the home assistant setup but I cant seem to find the hardware I need.

The inverter has a physical push button to turn it on and off. Is there something I can wire in to replace the switch so that I can control it from home assistant?

I also need a voltage sensor. Cant seem to find one without having to hack something together. Surely someone supplies a basic smart voltage sensor.

Thanks for taking the time to read my post. Hope I can win here!

Either a relay or a servo to physically push the button.

I don’t think so. But ESP-Home can be used for this. Fairly simple to build a voltage divider and sensor.

https://www.jaycar.com.au/12v-battery-monitor-with-bluetooth-technology/p/QP2265

This voltage sensor can sent notifications to smart phone, may be can set up some shortcut/ IFTTT sort of events to HA

Thanks for your replies guys! I have ordered everything I need to monitor the batteries. Now I just need to figure out when the batteries are at 50% discharged so I can automate switching off the inverter. Doing a little research I am seeing that batteries under load (inverter switched on) will show a lower voltage. Any ideas on how I would understand the remaining charge on the inverter if it is running. I can see that 12.2v is 50% discharge on resting batteries. Obviously they wont be resting. I suppose I could switch off the inverter at given time periods to find the resting voltage of 12.2v and then switch it back on again to compare the load percentage. However, I am guessing that the voltage under load will differ depending on the actual amps being pulled from the battery? Thanks