Skip to content

Xiaomi control

Latest
Compare
Choose a tag to compare
@duddi duddi released this 09 Aug 22:36
· 2 commits to main since this release
f0024f3

Changelog for Updated Purifier Card

This update introduces several key enhancements and modifications to the original Purifier Card for Home Assistant, making it more tailored to Xiaomi air purifiers and adding specific functionalities that were not present in the original version.

1. Xiaomi-Specific Enhancements
Fan Speed Control:

The fan speed is now controlled using the xiaomi_miot.set_miot_property service. The slider directly adjusts the fan speed by converting the percentage to the corresponding Xiaomi-specific speed value (from 0 to 14) and sends it via the siid and piid parameters.
The card automatically sets the preset mode to "Favorite" whenever the fan speed is adjusted, ensuring compatibility with Xiaomi's operation modes.
Preset Mode Display:

The slider percentage value is dynamically replaced with "Auto" or "Sleep" when these preset modes are selected, providing a clearer and more intuitive interface.

2. Custom Naming
Configurable Entity Name:
Users can now set a custom name for the purifier entity through the card's configuration. If a custom name is provided, it will be displayed on the card; otherwise, the default friendly_name of the entity will be shown.

3. Shortcut Enhancements
Preset and Speed Shortcuts:
The card includes shortcuts for preset modes like Auto, Sleep, and Favorite, as well as direct speed controls (e.g., 25%, 50%, 75%, and 100%). Each shortcut adjusts the fan speed accordingly and updates the slider to reflect the new value.

4. General Improvements
Simplified Code Structure:
The code has been streamlined to focus specifically on Xiaomi devices, reducing complexity and potential conflicts with other brands or models.
Enhanced Error Handling:
Added better handling and logging for service calls, particularly around fan speed and preset mode adjustments.

Summary of New Capabilities
The updated version of the Purifier Card is optimized for Xiaomi air purifiers, offering direct control over fan speed, preset modes, and other Xiaomi-specific features. It also includes enhanced customization options, allowing users to set custom names and create specialized shortcuts like filter resets, all within a simplified and more user-friendly interface. This version is ideal for users who primarily operate Xiaomi air purifiers and need a more integrated and seamless control experience within Home Assistant.