I documented my solution to control amazon smart plugs via HA (without using nabu casa) here:
Hope that helps!