home-energy-logger Function to request updated device status from Samsung SmartThings API, and log it to a DB.