Xiaomi Home Assistant Bug Report: Non-Standard Entity Issue with yeelink.switch.ylsw4
in Post with 0 comment

## Introduction
The Xiaomi Home Assistant has been experiencing a bug with the yeelink.switch.ylsw4 device, where the automatic click event is not being recognized as a standard entity. This issue has been reported to occur in both the standard and geek editions of the Xiaomi Home Assistant.

## Problem Description
The yeelink.switch.ylsw4 device has three events: single click, double click, and long press. However, when the 'Hide non-standard generated entities' option is enabled, these events disappear. When this option is disabled, the events reappear but are marked as non-standard entities.

## Reproduction Steps
1. Enable the 'Hide non-standard generated entities' option in the integration settings. The events will disappear.
2. Disable the 'Hide non-standard generated entities' option. The events will reappear but will be marked as non-standard entities.

## Expected Behavior
The automatic click event should be recognized as a standard entity, similar to the yeelink.switch.ylsw5 and yeelink.switch.ylsw3 devices.

## Reproduce Time
The issue was reproduced on 2025-07-09 at 14:00.

## System Logs
Unfortunately, there are no system logs available for this 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 15.2.

## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.3.3.

## Additional Context
There is no additional context available for this issue.

## Conclusion
In conclusion, the yeelink.switch.ylsw4 device is experiencing a bug where the automatic click event is not being recognized as a standard entity. This issue can be reproduced by enabling and disabling the 'Hide non-standard generated entities' option in the integration settings. It is expected that the automatic click event will be recognized as a standard entity, similar to other devices. The issue has been reported to occur in both the standard and geek editions of the Xiaomi Home Assistant.

The article has been posted for too long and comments have been automatically closed.