I haven't done this, but I think you can:
Add a switch to your powerline adapter.
Plug in a Hue hub, use Hue compatible sensors/lights in your remote shed.
Use one of the HE/Hue integrations to control/automate everything.
Used V1 hubs show up real cheap on local buy/sell websites, probably less than the Sonoff one.