SERVICE & TOOLS
Mi Home
MIoT smart home — device discovery, properties, actions, scenes
24 available tools
get_ server_ status
Get server status information Returns: JSON string of server status
batch_ set_ properties
Batch set device properties Args: operations: Operation list, each operation contains device_id, siid, piid, value Returns: JSON string of batch operation result
call_ action
Call device action Args: device_id: Device ID siid: Service instance ID aiid: Action instance ID params: Action parameter list (optional) Returns: JSON string…
cancel_ qr_ login
Cancel ongoing QR code login process Call this to abort the QR login process if no longer needed. Returns: JSON string containing: - success: bool - message: Status m…
check_ qr_ login_ status
Check if QR code has been scanned and login is complete Call this after start_qr_login to check if user has completed scanning. Uses short timeout to avoid blocking. Call repeatedly until logged_…
clear_ cache
Clear resource cache Returns: JSON string of clear result
clear_ status_ cache
Clear device status cache Returns: JSON string of clear result
connect
Connect to Mijia cloud service Returns: JSON string of connection result
disconnect
Disconnect from Mijia cloud service Returns: JSON string of disconnection result
discover_ devices
Discover Mijia devices Returns: JSON string of device list
get_ cached_ device_ status
Get cached device status Args: device_id: Device ID, if empty returns all cached status Returns: JSON string of cached status
get_ consumable_ items
Get consumable items for a specific home Args: home_id: Home ID owner_id: Owner ID (optional, for shared homes) Returns: JSON string of consumable items list
get_ device_ actions
Get device available actions Args: device_id: Device ID Returns: JSON string of device action list
get_ device_ properties
Get device properties Args: device_id: Device ID Returns: JSON string of device properties
get_ device_ status
Get device status information Args: device_id: Device ID Returns: JSON string of device status
get_ homes
Get home list Returns: JSON string of home list
get_ property_ value
Get device property value Args: device_id: Device ID siid: Service instance ID piid: Property instance ID Returns: JSON string of property value
get_ scenes_ list
Get scene list for a specific home Args: home_id: Home ID Returns: JSON string of scene list
ping
Test server connectivity Args: message: Message to send Returns: JSON string of response message
refresh_ all_ device_ status
Refresh all device status Returns: JSON string of all device status
run_ scene
Run a specific scene Args: scene_id: Scene ID Returns: JSON string of execution result
search_ devices
Search and filter devices Args: query: Search keywords (device name or model) device_type: Device type filter online_only: Whether to show only online devices Returns: …
set_ property_ value
Set device property value Args: device_id: Device ID siid: Service instance ID piid: Property instance ID value: Value to set Returns: JSON string of setting …
start_ qr_ login
Start QR code login process (non-blocking) This initiates the QR code login and immediately returns the QR code URL. The user can scan the QR code using Mi Home app, then call check_qr_login_stat…