.on("ready", function(bot) {

    // Listen to the status event to obtain all thermostat
    // related data in a single object.
    bot.thermostat.on("status", function(data) {