Web Analytics

HassLife

⭐ 196 stars English by Blear

Introduction

Communication QQ Group: 528735636

Home Assistant component

hacs_badge

This Home Assistant component enables Tmall Genie, Xiao Ai, and Xiaodu speakers to connect with devices on the HomeAssistant platform, controlling devices and querying reported device status.

Note: This plugin only handles control commands and device status reporting. Adding devices must be configured on the HassLife platform.

Installation

1. Install the plugin

##### Method 1: Install via HACS 【Recommended!】 >> Sidebar HACS -> Integrations -> Search hasslife and click download

##### Method 2: Manual download Download plugin >> Download the hasslife folder and save it in the /custom_components/ directory. If custom_components does not exist, create it yourself, then restart HomeAssistant.

>> Windows users: %APPDATA%\.homeassistant

>> Linux-based users: You can find the .homeassistant folder by running the command locate .homeassistant/configuration.yaml, which is the config directory.

>> Synology Docker users: Go to Docker - Images - homeassistant - Advanced Settings - Volume, the path corresponding to /config is the config directory.

2. Configure the plugin

##### Method 1: Integration UI configuration >> Click Configuration on the HomeAssistant sidebar -> Integrations -> Add integration at the bottom right -> Search hasslife and click -> Enter registered hasslife account and password and submit. The plugin takes some time to start the first time, please wait patiently.

If you encounter a message that this integration does not support UI configuration, and you came from the Home Assistant website link, please ensure you are running the latest version of Home Assistant. You can manually add the account configuration and then restart HomeAssistant.

Usage Steps:

Tmall Genie Configuration Example

Xiaomi AI Speaker Configuration Example

Baidu Speaker Configuration Example

Supported Devices and Attributes for Tmall Genie

Currently supported device types include: Light, Switch, Clothes Rack, Curtain, TV, Water Heater, Fan, Sensor, Air Conditioner, Binary Selector.

Devices that support on/off status include: Light, Switch, Clothes Rack, Curtain, TV, Water Heater, Fan, Sensor, Air Conditioner, Binary Selector. Light support adjustment: color, brightness, color temperature Air conditioner supports mode switching: cooling, heating, ventilation, dehumidification, automatic, temperature adjustment. Fan speed supports: low, medium, high, automatic Clothes drying rack supports: drying rod control, switch control Curtain supports: opening and closing of curtains Fan supports: power control (turn on/off fan), speed control (1-100 levels (percentage speed), highest gear, resistance gear, medium-low gear, medium-high gear, high gear, super strong gear, breeze gear, automatic gear), left-right rotation / oscillation / swing

Xiao Ai Assistant Supported Devices and Attributes

Currently supported device types: light, switch, curtain, fan, air conditioner.

Device switch state supports devices: light, switch, curtain, fan, air conditioner. Light supports adjustment: color, brightness, color temperature Air conditioner supports mode switching: cooling, heating, ventilation, dehumidification, automatic, temperature adjustment. Fan speed supports: low, medium, high, automatic Curtain supports: opening and closing of curtains Fan supports: power control (turn on/off fan), speed control (1-100 levels (percentage speed), left-right rotation / oscillation / swing

Xiaodu Speaker Supported Devices and Attributes

Device switch state supports devices: light, switch, curtain, fan, air conditioner. Light supports adjustment: on/off Air conditioner supports mode switching: cooling, heating, ventilation, dehumidification, automatic, temperature adjustment. Fan speed supports: low, medium, high, automatic Curtain supports: opening and closing of curtains Fan supports: power control (turn on/off fan), speed control (1-10 levels)

--- Tranlated By Open Ai Tx | Last indexed: 2026-06-03 ---