code: def device_status(self):
          
          return {
              'active': self.device['active'],
              'offline': self.device['offline'],
              'last_update': self.last_update,
              'battery_level': self.battery_level,
          }
docs: Status of device.