'Update the switch value.'

def update(self):

    monitor = zoneminder.get_state(('api/monitors/%i.json' % self._monitor_id))
    current_state = monitor['monitor']['Monitor']['Function']
    self._state = (True if (current_state == self._on_state) else False)
