control_device
Control WeMo smart devices by turning them on, off, toggling, or adjusting brightness. Specify device by name or IP address; for dimmers, set brightness level 1-100.
Instructions
Control a WeMo device (turn on, off, toggle, or set brightness).
Controls a device by sending turn on, turn off, or toggle commands. For dimmer devices, you can also set the brightness level (1-100). The device must have been discovered via scan_network first.
Args:
device_identifier: Device name (e.g., "Office Light") or IP address (e.g., "192.168.1.100")
action: Action to perform - must be one of: "on", "off", "toggle", "brightness"
brightness: Brightness level (1-100) - only used when action is "brightness" or "on" for dimmer devices
ctx: MCP context injected by FastMCP; used to elicit the correct device when identifier is ambiguousReturns:
Dictionary containing:
- success: Boolean indicating if the action succeeded
- device_name: Name of the device
- action_performed: The action that was executed
- new_state: The state after the action
- brightness: Current brightness level (for dimmers)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_identifier | Yes | ||
| action | Yes | ||
| brightness | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||