code: def set_state(self, value, reason, data=None):
          
          return self.connection.set_alarm_state(self.name, reason, value, data)
docs: Temporarily sets the state of an alarm.
  
          :type value: str
          :param value: OK | ALARM | INSUFFICIENT_DATA
  
          :type reason: str
          :param reason: Reason alarm set (human readable).
  
          :type data: str
          :param data: Reason data (will be jsonified).