bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

Support Dw2-RF contact sensor as garage door sensor #508

Closed zelik888 closed 10 months ago

zelik888 commented 10 months ago

Currently emulating garage door using multichannel sonoff and it works great, thank you. I also have a DW2-RF contact sensor to sense of garage is open or closed and it shows up in the plug-in/Homekit but cannot be used as sensor for the emulated garage (currently supports Wi-Fi or zigbee contact sensor).

Could this support be added? Sensor shows up in the plug-in fine and works well as an independent HomeKit sensor.

bwp91 commented 10 months ago

Hi @zelik888

thanks for your suggestion.

this is something that wouldn't really be viable, let me explain why:


sensors like the DW2-wifi or other zigbee sensors offer two definite states at any time:

From these states it is pretty reliable to determine at any time whether any door/curtain/window/garage etc is closed or not closed, for this reason I have added the functionality of linking a switch or switches to expose as a grarage/window/door etc via the plugin settings

bwp91 commented 10 months ago

However, the RF versions of these sensors do not offer this definite closed/not closed status.

They simply 'transmit' to the plugin when the contact has been broken, in other words:

These RF devices do not report back to the plugin when the sensor contact has been made again, which makes it really difficult for the plugin to calculate the current state of the door/window/garage.

bwp91 commented 10 months ago

And when it comes to 'critical' devices like doors/windows/garages I am hesitant to start trying to make workarounds which for example may work 50% of the time but are not reliable

zelik888 commented 10 months ago

Thank you, I understand. I sadly purchased the RF after using the WIFI DW2 because the WIFI had such terrible battery life! I guess I must get the zigbee version then. I thank you so much for the plugin!