'Update state of the light.'

@util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
def update(self):

    resp = self.node.status(0)
    while (('error' in resp) and (resp['error'] is True)):
        resp = self.node.status(0)
    if ('cmd2' in resp):
        self._value = int(resp['cmd2'], 16)
