Help with Zappi / Octopus / Sunsynk automation

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!

Hello Al,

I’m sure that can be done. Also having someone or something writing it for you means the second it misbehaves, you will be struggling back to find someone to fix it for you.
The best way to learn is to just try. Run thru the docs on getting started with the automation editor. If you get stuck, come back with what you have done.

and
The Home Assistant Cookbook - Index.

How to help us help you - or How to ask a good question.

1 Like

Thanks, I actually think I managed it without code, just using the automation workflow. In the end acheived it with setting the max discharge current of the battery to 1A when the Zappi internal CT rate is above 1000W. When it drops back down below 1000W the battery discharge current returns to 50A.

1 Like