al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.41k stars 615 forks source link

Homekit shows usless switches #1098

Open steuerzentrale opened 1 year ago

steuerzentrale commented 1 year ago

Hi there

I have Xiaomi smart fans 3 at home and absolutely love them! they are recognized as zhimi.fan.za5. I am not sure wether Home Assistant, the Homekit integration https://www.home-assistant.io/integrations/homekit/ or the HACS-addon is causing the below described issue.

In HA they have the following entities: 232322550-70735e0a-bbb6-4c04-a6f4-69fe7f01ae81

the first entity is definied as a fan-entity, the indicator light as a light-entity and the physical lock as a switch-entity.

the issue I ONLY expose the fan-entity to Homekit, however Homekit somehow also sees two switches.

232322887-b974f065-53b6-418f-9e87-745a28e1b7d9

If I click on the switches in Homekit they dont match with either the indicator light or physical lock, moreover they are also interpreted as the fan-entity that I expose. Please see the numbers from 1-3

232322903-54170184-b510-4ad4-97a3-9b0b200974ea 232322909-c7175641-a8df-4e14-b6ba-391dafa2acf2 232322913-549c8de8-f5db-4a2e-b686-93c7e7f01ecd 232322918-5b2f4966-a977-4c49-8746-2d98002dd9b0

versions HA OS core-2023.4.6 HACS 1.32.1 Xiaomi Miot Auto 0.7.8

al-one commented 1 year ago

The switches displayed in Homekit are the preset modes of the fan entity, not the Indicator Light and Physical Control Locked switch entities.

steuerzentrale commented 1 year ago

thanks a lot for the quick reply. Is there any possibility to exclude the switches from being displayed in Homekit via your integration? I see what you are talking about, its these modes:

Bildschirmfoto 2023-04-25 um 16 19 10
stickybyte commented 1 year ago

+1 for this. Having the same issue.

al-one commented 1 year ago
Seger85 commented 10 months ago