code: def set_backlight(self, state):
          
  
          if state in ["on", "off", "toggle", "open", "blink", "flash"]:
              self.backlight = state
              self.server.request("screen_set %s backlight %s" % (self.ref, self.backlight))
docs: Set Screen Backlight Mode