kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

Creates Independent Door & Motion Entities for Bricked Sensors #231

Open plasota opened 8 months ago

plasota commented 8 months ago

Not sure if this will be merged in since the repo isn't being maintained, but wanted to share in case anyone comes across this issue.

Just like for many others, almost all of my Wyze Sense v1 devices are in the "bricked" state where they all have a null MAC address after the battery got too low. This PR makes these sensors a tad more useful by at least identifying door and motion sensors from each other using the sensor type that is passed in the data packet from the sensor. Currently, all bricked sensors (no matter if they're door or motion sensors) will all funnel into one entity. This PR adds two new entities binary_sensor.wyzesense_door0000 and binary_sensor.wyzesense_motion00 if any bricked sensors of those types are discovered. Whenever a bricked sensor is triggered, only the corresponding binary_sensor's state will change.