The APM (Advanced Power Management) application was specifically designed for the user who prefers using smart switches to control various appliances in and around their home.
APM
Control your Sonoff smart WiFi switches with the APM application to maximise your solar system performance.
This application allows the user to switch off certain devices when load shedding occurs to prevent excessive battery usage.
The APM software allows for four(4) Sonoff Wifi controlled switches to be connected.
Example
When PV > 2000 and SOC = 100% then switch on the swimming pool pump. (Get Max out of your PV array)
From 18:00 to 04:00 Switch on the Air-conditioner when SOC > 90 and switch off when Grid voltage < 100 volts.
Please Note that you need to flash your Sonoff with Tasmota firmware to work with the Advanced Power Management Application. You will also need to have an ICC-PI from ICCSoftware.co.za
https://tasmota.github.io/docs/Getting-Started/
PLEASE NOTE THAT MQTT DOES NOT COMMUNICATE WITH THE INVERTER DIRECTLY AND THEREFORE DOES NOT ALLOW ANY REMOTE CHANGES TO THE SYSTEM.