code: def set_color(self, color, group=None):
          
          if color == "white":  # hack, as commands for setting color to white differ from other colors.
              self.white(group)
          elif isinstance(color, int):
              if color < 0 or color > 255:
                  raise AttributeError("Color must be color keyword or 0-255")
              self._send_to_group(group, command="color_by_int", color=color)
          else:
              color_command = "color_to_%s" % color
              if color_command not in self.RGBW_COMMANDS:
                  raise AttributeError("'%s' is not a valid color." % color)
              self._send_to_group(group, command=color_command)
          return color
docs: Switch lights on and change color. Available colors:
  
               - violet
               - royal_blue
               - baby_blue
               - aqua
               - royal_mint
               - seafoam_green
               - green
               - lime_green
               - yellow
               - yellow_orange
               - orange
               - red
               - pink
               - fusia
               - lilac
               - lavendar
  
              If group (1-4) is not specified, all four groups
              will be switched on and to specified color.
  
              Alternatively, use int (0-255) to specify the color.