HA integration to control mode scheduler without modbus
Hi all.

I've created a moderately simple HA integration https://github.com/nicois/foxess-contro ... /README.md intended to allow people without modbus to avoid the pain of relying on the mode scheduler provided by the mobile app.

I won't try to repeat what the README says in detail, just the key features:
- you can tell the inverter to charge your battery within a defined window, ensuring you reach your target SoC with a minimum of grid power (ie: where possible, waiting as long as possible to allow solar maximum opportunity to provide what you need). It will switch to self-use afterwards
- you can instruct the inverter to force-discharge during a window at a configured rate until a SoC is reached, at which point it switches to self-use. The FoxESS force-discharge threshold does not do this, instead pulling from the grid when you least want it.

You have finer-grained control too if you want it, but these two "smart" features are probably most of what people are looking for.

I only just created this, and there is a big HACS backlog to be natively listed, so unfortunately you'll need to follow the instructions to add a custom repository.
Don't hesitate to list any feature requests or bugs. This is only a couple of days old, so will still have a few rough edges.
Re: HA integration to control mode scheduler without modbus
This has been evolving pretty quickly, and I wanted to share just one of the recent additions:

Image

If your energy provider pays higher feed-in rates at certain times of the day, smart discharge lets you control how much energy get pushed out, balancing your own consumption needs with the benefits of feeding energy into the grid.

In the above (contrived) example, there's a 55 minute feed-in period where the inverter will discharge at the maximum allowable rate - but it will stop after 1kWh has been fed in. This is useful when your retailer only pays good rates for the first X kWh per day.

You can also set the minimum SoC, which guarantees you will not run out of energy overnight. Whichever limit is reached first will cause your inverter to switch back to self-use mode.
Attachments:
Screenshot_20260409_223155_Home Assistant.jpg
Re: HA integration to control mode scheduler without modbus
You should attach your image, as it is blocked from viewing in some regions.
imgur doesn't work here ;)
Re: HA integration to control mode scheduler without modbus
I've added support for modbus as an option, so those users can also benefit from the more powerful automations offered by this integration. I don't yet have modbus working so I welcome feedback if there are any rough edges with this.

Another notable feature: when using "smart discharge", if it appears the minimum SoC will be reached before the period ends, the discharge rate will be reduced to avoid your hitting that SoC early.

There's also a custom dashboard card to let you see at a glance what's happening:
Screenshot_20260411_205626_Chrome.jpg
Re: HA integration to control mode scheduler without modbus
Looks nice - thanks for your efforts. It looks like it would be a nice easy way to send commands from HA.

I've got modbus working so will keep an eye open for anything
Post Reply