I guess you increase the cost of your setup by adding an intermittent power switch / timer that turns charger power on and off. With MQTT, the server itself could drive the switch, and turn the charger on when the battery is low enough, turn it off when full enough.