240v 20+Amp Outlet or load controller

Follow these instructions, it’s a device type. Make sure when you copy the code you copy the entire contents of
https://raw.githubusercontent.com/jpansarasa/SmartThings/master/DeviceTypes/AeotecHDSS.groovy