Skip to content

Tmall Genie Configuration Guide

Materials

Cloud-to-cloud integration paid service notice: https://iot.aligenie.com/cooperation/agreement

Smart Home skill platform: https://iot.aligenie.com/home

Help documentation: https://www.aligenie.com/doc/357554/hf8wog

Configuration Flow

  1. Register and sign in to the Tmall Genie Open Platform;
  2. Create a Tmall Genie voice-control skill;
  3. Create a Tmall Genie voice-control product;
  4. Create a smart product on the Tmall Genie platform and complete account authorization;
  5. Configure the Ubases IoT smart product and voice-control settings;
  6. Device debugging;

Register and Sign In to the Tmall Genie Open Platform

image.png

Create a Tmall Genie Voice-Control Skill

image.png

Go to Console → Applications → Cloud Access OAuth Management, and configure the Ubases IoT OAuth 2.0 endpoints so that Tmall Genie can authorize accounts and send device-control requests through OAuth 2.0.

image.png

image.png

OAuth 2.0 credentials are obtained from the Ubases IoT Open Platform

image-20240701102029317

OAuth 2.0 configuration:

Account authorization URL: Obtain the exact HTTPS URL from the Ubases IoT Open Platform and enter it in the corresponding Tmall Genie console field.

Client ID: xxxxxxxx

Client Secret: xxxxxxxx

Redirect URL: Use the redirect URL displayed or required by the Tmall Genie console. Do not use a Xiaomi/Mi Home OAuth redirect domain or path.

Access Token URL: Obtain the exact HTTPS token endpoint from the Ubases IoT Open Platform.

Refresh URL: Obtain the exact HTTPS refresh endpoint from the Ubases IoT Open Platform. If the platform uses the same endpoint for token issuance and refresh, enter that endpoint in both fields.

Scope: all

Grant Type: authorization_code

Cloud messaging configuration:

Device command endpoint: Use the HTTPS gateway URL provided by Ubases IoT for Tmall Genie integration. Confirm the current endpoint in the Ubases IoT and Tmall Genie consoles rather than reusing an endpoint configured for another voice platform.

After configuration, go to the skill publish page and perform test authorization;

image.png

Create a Tmall Genie Voice-Control Product

image-20240701102445665

image-20240701102547700

Skill Account Authorization Login

Click Account Authorization, follow the steps to sign in and verify. After success, you will see the debug speaker and synchronized Ubases IoT devices. If you do not have devices yet, continue with the steps below;

image-20240701102848442

Configure Ubases IoT Smart Product and Voice Control

Go to Product Open → Product Details → Voice Control to bind the Tmall Genie skill and configure attribute conversion rules;

Note: Brand name, device type, product model, and skill ID can all be obtained from the Tmall Genie product information;

Tmall Genie product details:

image-20240701105502881

Voice platform details: (fill in according to the name mapping)

image-20240701105322877

The mapping is as follows:

image-20240701110734354

Add function points:

image-20240701105732128

Mapping (identifier, data type, value). The figure below shows the function points configured on the Tmall platform; map them by identifier, data type, and value.

image-20240701105823331

When configuration is complete, click Save.

image-20240701110053906

If you need to show usage guidance in the App, go to the optional Voice Service section on the platform to configure it;

image-20240701110306609

Device Debugging

After completing the above configuration, go to the Tmall platform test page to perform voice-control testing.

image-20240701110905847

image-20240701110940441

Released under the MIT License. Build Time 2026-09-11 14:52:23