Skip to main content
Glama

wyze_set_light_effect

Configure dynamic lighting effects on Wyze light strips or compatible bulbs by specifying device MAC and effect type.

Instructions

Set visual effect for a Wyze light strip or compatible bulb

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_macYes
effectYes

Implementation Reference

  • The main handler function for the 'wyze_set_light_effect' tool. It is registered via the @mcp.tool() decorator. The function finds the Wyze light device by MAC address, calls the Wyze API to set the specified effect, and returns success/error status messages.
    @mcp.tool() def wyze_set_light_effect(device_mac: str, effect: str) -> Dict[str, str]: """Set visual effect for a Wyze light strip or compatible bulb""" try: client = get_wyze_client() devices = client.devices_list() for device in devices: if device.mac == device_mac and getattr(device, 'product_type', 'Unknown') in ['Light', 'Bulb', 'MeshLight', 'LightStrip']: client.bulbs.set_effect( device_mac=device_mac, device_model=getattr(device, 'product_model', 'Unknown'), effect=effect ) return {"status": "success", "message": f"Set {device.nickname} effect to {effect}"} return {"status": "error", "message": f"Light with MAC {device_mac} not found"} except WyzeClientConfigurationError as e: return {"status": "error", "message": f"Configuration error: {str(e)}"} except WyzeRequestError as e: return {"status": "error", "message": f"API error: {str(e)}"} except Exception as e: return {"status": "error", "message": f"Unexpected error: {str(e)}"}
  • MCP tool registration decorator for wyze_set_light_effect.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aldilaff/mcp-wyze-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server