code: def set_ontime(self, ontime):
          
          try:
              ontime = float(ontime)
          except Exception as err:
              LOG.debug("SwitchPowermeter.set_ontime: Exception %s" % (err,))
              return False
  
          self.actionNodeData("ON_TIME", ontime)
docs: Set duration th switch stays on when toggled.