I have the Ecowitt GW1200B and a couple of WH51 Moisture Sensors. Have them in Hubitat using the Ecowitt WiFi Gateway driver. All is working fine in Hubitat and data is sending to Hubitat from the gateway perfectly.
But, when I bring the WH51 sensors into HomeKit, immediately a Leak Detected message shows up in the Home app. All of the other sensor readings are fine, but it always shows that a leak is triggered in HomeKit. I can't find anything in the device settings in Hubitat to change this. Anyone else encounter this issue?
It looks like this is being caused by the capability "Water Sensor".
Open Ecowitt RF Sensor in the driver code, and comment out Water Sensor.
The Water Sensor capability in Hubitat is basically a leak sensor, so it looks like HomeKit is translating that capability to a leak sensor when it adds the device.
This assumes that you do not have a WH55 Ecowitt Water Leak Sensor, but apparently that is what it is there for.
you cannot comment that out.. there is one driver for all capabilities.. there is a way in homkit to specify which capability to use.. see the main ecowit thread.
Ah, good to know there is a HomeKit setting for that, I don't use HomeKit so I didn't know that existed.
Does Ecowitt app have an issue without that capability in the driver, if you have no Leak Sensor to use that capability? I wouldn't think so, but I will take your word for it.
no if you have no leak sensor you can safely comment it out.. but not sure that will fix it.. from what ive read homekit can just pick any one of the capabilities and go with it.
just remember if you do and it works and you get a ecowitt leak sensor.. you may be foobared if you forget. or if you update the drivers with package manager.
I saw in the EcoWitt post that one person created a new driver specifically for that capability and change it in Device settings on the Ecowitt device, as a work around, to split things out so HomeKit doesn't just randomly choose one of the options.
@chrisbvt Thanks! Commenting out the Water Sensor in the driver worked great! The WH51 sensor sows the humidity/moisture in Homekit and no longer gives the leak warning.
@kahn-hubitat, I did find in Homekit that you can exclude the water sensor in notifications. But, even when its excluded it still showed a water leak because a leak is considered a priority notification.
Echoing @kahn-hubitat‘s point that this is not the solution you should use (even if it technically works).
This is not actually what was suggested.
If you browse to Hubitat’s HomeKit integration settings, you can exclude the leak sensor capability from being sent to the Apple Home app. Note that this is from the hub’s UI, not from within the Home app on a iOS device.
Once you do that, Home will not see the device as a leak sensor anymore.