For the Roku TV driver, If you know how to program, you can start here:
https://developer.roku.com/docs/developer-program/debugging/external-control-api.md
These commands work beautifully with my TCL S4 model. Just sent them via terminal:
curl -d '' http://TV_IP:8060/keypress/powerOn
curl -d '' http://TV_IP:8060/keypress/powerOff
curl -d '' http://TV_IP:8060/keypress/Home
and etc..
A simple Control4 driver for the TP Link HS100/HS110 WiFi Plugs
https://github.com/Alex-developer/hs1xx