raetha / wyzesense2mqtt

Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
MIT License
79 stars 22 forks source link

Immediately unpair sensors with bad MAC and log #19

Closed raetha closed 4 years ago

raetha commented 4 years ago

It should be possible to detect when a sensor tries to pair with a bad MAC address and automatically remove it, rather than forcing a manual remove later. In order to be useful, this would need to log the failure so that it would be obvious why the pairing failed.

raetha commented 4 years ago

This branch of HA-WyzeSense includes doing an auto unpair. Something similar could be done here, but at the higher level rather than the underlying library to avoid additional library fragmentation in WyzeSensePy.

https://github.com/kevinvincent/ha-wyzesense/compare/photinusdev