Skip to main content
Glama

wyze_clear_light_timer

Clear scheduled timers for Wyze smart lights to stop automated on/off cycles. Specify the device MAC address to remove existing timer settings.

Instructions

Clear any scheduled timers for a Wyze light

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_macYes

Implementation Reference

  • Handler function for wyze_clear_light_timer tool. Decorated with @mcp.tool() for automatic registration in FastMCP. Clears scheduled timers for the specified Wyze light device MAC address using wyze_sdk Client.bulbs.clear_timer.
    @mcp.tool() def wyze_clear_light_timer(device_mac: str) -> Dict[str, str]: """Clear any scheduled timers for a Wyze light""" 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.clear_timer( device_mac=device_mac, device_model=getattr(device, 'product_model', 'Unknown') ) return {"status": "success", "message": f"Cleared timer for {device.nickname}"} 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)}"}

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