Doorbell event entities do not declare support for the "ring" event type
Describe the Bug / 描述问题
With Xiaomi Home v0.5.0, Home Assistant reports that two Xiaomi doorbell event entities use the doorbell device class but do not declare support for the ring event type.
According to the warning, this behaviour will stop working in Home Assistant 2027.4.
The issue is still present in the latest Xiaomi Home integration version, v0.5.0.
How to Reproduce / 复现步骤
- Install or upgrade Xiaomi Home to v0.5.0.
- Add a Xiaomi doorbell device.
- Restart Home Assistant.
- Open Settings > System > Logs.
- Observe the warnings for the doorbell event entities.
Expected Behavior / 预期结果
Doorbell event entities should declare ring as a supported event type before triggering it. The entities should work without compatibility warnings and continue to work in Home Assistant 2027.4 and later.
Reproduce Time / 问题复现的时间点
2026-09-29 08:00:00
Home Assistant Logs / 系统日志
WARNING (MainThread) [homeassistant.components.event] Entity event.xiaomi_cn_0123456789_s20pro_doorbell_ring_e_5_1006 is a doorbell event entity but does not support the 'ring' event type. This will stop working in Home Assistant 2027.4, please create a bug report at https://github.com/XiaoMi/ha_xiaomi_home/issues
WARNING (MainThread) [homeassistant.components.event] Entity event.xiaomi_cn_0123456789_s20pro_doorbell_ring_e_6_1 is a doorbell event entity but does not support the 'ring' event type. This will stop working in Home Assistant 2027.4, please create a bug report at https://github.com/XiaoMi/ha_xiaomi_home/issues
Log Timezone / 日志时区
Asia/Shanghai
Home Assistant Core Version / Home Assistant Core 版本
2026.9.4
Home Assistant Operation System Version / Home Assistant Operation System 版本
N/A (Container)
Xiaomi Home Integration Version / 米家集成版本
v0.5.0
Additional Context / 其他说明
The affected entities are:
event.xiaomi_cn_0123456789_s20pro_doorbell_ring_e_5_1006 event.xiaomi_cn_0123456789_s20pro_doorbell_ring_e_6_1
The event entity appears to use the doorbell device class and trigger an event with event_type="ring", but ring is not included in the entity's declared supported event types.
Source: XiaoMi/ha_xiaomi_home