Found the missing code in devices.php that was causing the wattage to be set to 0 on creation.  Had been working fine on updates.

Fixes #156