wemo
v1.0.1Control WeMo smart home devices - discover, toggle, adjust brightness, and manage HomeKit codes
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_network
Scan network for WeMo devices using pywemo discovery. This tool scans the specified subnet for WeMo devices by: 1. Probing all IPs in the subnet on common WeMo ports (49152-49155) 2. Verifying responsive IPs by attempting to read device descriptions 3. Using pywemo library to properly identify and parse WeMo devices Args: subnet: Network subnet in CIDR notation (e.g., "192.168.1.0/24") timeout: Connection timeout in seconds for port probing max_workers: Maximum concurrent workers for network scanning Returns: Dictionar…
| Parameter | Type | Description |
|---|---|---|
max_workers | integer | |
subnet | string | |
timeout | number |
list_devices
List all discovered WeMo devices from the cache. Returns a list of devices that were found in previous network scans. Run scan_network first to populate the device cache. Returns: Dictionary containing: - device_count: Number of cached devices - devices: List of device names and IPs
get_device_status
Get the current status of a WeMo device. Retrieves the current state and information for a device by name or IP address. 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") Returns: Dictionary containing: - device_name: Name of the device - state: Current state ("on" or "off") - Additional device information
| Parameter | Type | Description |
|---|---|---|
device_identifier * | string |
control_device
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…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
device_identifier * | string | |
brightness | integer |
rename_device
Rename a WeMo device (change its friendly name). Changes the friendly name of a WeMo device. This is the name that appears in the WeMo app and is used to identify the device. The device must have been discovered via scan_network first. After renaming, the device cache will be updated with the new name. You may want to run scan_network again to refresh the device list. Args: device_identifier: Current device name (e.g., "Office Dimmer") or IP address (e.g., "192.168.1.100") new_name: New friendly name for the device (e.g., "Office Ligh…
| Parameter | Type | Description |
|---|---|---|
device_identifier * | string | |
new_name * | string |
get_homekit_code
Get the HomeKit setup code for a WeMo device. Retrieves the HomeKit setup code (HKSetupCode) for devices that support HomeKit integration. This code can be used to add the device to Apple Home. The device must have been discovered via scan_network first. Note: Not all WeMo devices support HomeKit. If a device doesn't support HomeKit or doesn't have a setup code, an error will be returned. Args: device_identifier: Device name (e.g., "Office Light") or IP address (e.g., "192.168.1.100") Returns: Dictionary containing: -…
| Parameter | Type | Description |
|---|---|---|
device_identifier * | string |