Hi. I’m new to automations in HA and have recently joined Octopus Intelligent tairff that has problems that it can drain my home solar battery when charging the car. What I’d like to achieve is an automation to prevent the home battery from discharging when the car is charging. My inverter is a Sunsynk and this doesn’t have a simple on/off for battery, but you can set the charge capacity at 100% which stops it from discharging.
So, in terms of entities, I need to test for zappi status of “charging” (entity: sensor.myenergi_zappi_status_2)
And trigger changing the following entity to 100% which will stop the battery discharging: (entity: number.ss_prog1_capacity) and also prog2, prog3 etc.
When Zappi returns to pause mode I then want to revert the previous entities to their previous values. I’m assuming this is a simple automation but welcome any pointers as to how to write it!