def turn_off(self):
     """Turn the entity off."""
     zoneminder.change_state('api/monitors/%i.json' % self._monitor_id,
                             {'Monitor[Function]': self._off_state})
示例#2
0
 def turn_on(self, **kwargs):
     """Turn the entity on."""
     zoneminder.change_state('api/monitors/%i.json' % self._monitor_id,
                             {'Monitor[Function]': self._on_state})
示例#3
0
 def turn_off(self, **kwargs):
     """Turn the entity off."""
     zoneminder.change_state(
         'api/monitors/%i.json' % self._monitor_id,
         {'Monitor[Function]': self._off_state}
     )
 def turn_off(self):
     """Turn the entity off."""
     zoneminder.change_state("api/monitors/%i.json" % self._monitor_id, {"Monitor[Function]": self._off_state})
示例#5
0
 def turn_on(self):
     """Turn the entity on."""
     zoneminder.change_state(
         'api/monitors/%i.json' % self._monitor_id,
         {'Monitor[Function]': self._on_state}
     )