Hi All, I'm setting up a hybrid off-grid solar system to power my home security camera system. The system consists with a solar panel and battery, during the day the system will run on solar and during the night it will run on battery that charged by the extra solar power during the day. In event of rainy days, when the battery is depleted, I want to automatically switch to line power for the system and charging the battery. The key is to automatically switch to line power only when battery is low or out, and switch back when battery is up to a certain percentage. Is there an existing controller that can do this (more ideally customizable switch condition)? Thank you.