## Introduction to Yeelight Smart Switches
Yeelight smart switches are a popular choice for smart home automation, offering a range of features including single-click, double-click, and long-press trigger conditions. However, some users have reported issues with adding these switches to their Xiaomi Home Assistant, specifically with selecting the desired trigger conditions.
## Problem Description
The problem arises when attempting to add Yeelight smart switches to the Xiaomi Home Assistant automation. Despite the switches being compatible and properly connected, users are unable to select single-click, double-click, or long-press as trigger conditions. This limitation hinders the full utilization of the smart switches' capabilities.
## Models Affected
The issue affects the following Yeelight smart switch models:
- yeelink.switch.ylsw4
- yeelink.switch.ylsw5
- yeelink.switch.ylsw6
## Steps to Reproduce
Unfortunately, the exact steps to reproduce the issue are not provided. However, it is recommended to ensure that the smart switches are properly configured, updated, and connected to the Xiaomi Home Assistant system.
## Expected Behavior
The expected behavior is that users should be able to select single-click, double-click, or long-press as trigger conditions for their Yeelight smart switches in the Xiaomi Home Assistant automation.
## Reproduce Time
The issue was reported on 2025-06-06 at 11:00:00.
## Home Assistant Logs
No system logs are provided, which could be helpful in diagnosing the issue.
## Log Timezone
The log timezone is set to Asia/Shanghai.
## Home Assistant Core Version
The Home Assistant Core version is 2025.5.3.
## Home Assistant Operation System Version
The Home Assistant Operation System version is not provided.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.3.2.
## Additional Context
No additional context or information is provided.
## Troubleshooting Steps
To resolve the issue, users can try the following troubleshooting steps:
1. Ensure the Yeelight smart switches are properly connected and configured in the Xiaomi Home Assistant system.
2. Update the Yeelight smart switches and the Xiaomi Home Assistant system to the latest versions.
3. Restart the Xiaomi Home Assistant system and try adding the smart switches again.
4. Check the system logs for any error messages that may indicate the cause of the issue.
## Conclusion
In conclusion, the issue with Yeelight smart switches in Xiaomi Home Assistant is a significant limitation that affects the user experience. By following the troubleshooting steps and providing more information, users can help resolve the issue and enjoy the full benefits of their smart home automation system.