libdyson-wg / ha-dyson

Home Assistant custom integration for Wi-Fi connected Dyson devices
MIT License
228 stars 26 forks source link

night mode and continuous monitoring switches not exposed to Homekit? #178

Open slyoldfox opened 1 month ago

slyoldfox commented 1 month ago

I am not sure if this is a misconfiguration on my side.

I can see switch.vs9_eu_kfaxxxxx_night_mode and switch.vs9_eu_kfaxxxxx_continuous_monitoring in the Device on HA.

For some reason these switches do not get exposed to Homekit?

I fixed this by creating templated switches, not sure if this is same for other people?

slyoldfox commented 1 month ago

I haven't debugged this much yet, so I'm not sure yet about this.

Could it be that the DysonNightModeSwitchEntity and the DysonContinuousMonitoringSwitchEntity are added under the deviceobject, that HA doesn't expose them to Homekit?

This is done here: https://github.com/libdyson-wg/ha-dyson/blob/main/custom_components/dyson_local/switch.py#L29

dotvezz commented 1 month ago

@slyoldfox sorry but I live outside the homekit world, and have zero knowledge of how to make Home Assistant talk to it. Maybe homekit just needs some special configuration for switch entities?