Tuya Smartlife Eskom sensor plugged in to inverter and Eskom
Tuya relay switch to run standard lamp with rechargeable “Loadshedding globe” - run the relay from a dc ups
Run your Wi-Fi and internet off DC UPS
Now you can use a smartlife scene to automate turning the lamp on during Loadshedding and off afterwards (or whatever other automation you need)
Note using cheap DC UPS is much more efficient than running the relay and Internet off your inverter, so will save your inverter battery.