pgerke / homebridge-freeathome-local-api

A Homebridge plugin that allows controlling you free@home setup using the local API provided by the System Access Point
MIT License
18 stars 2 forks source link

Filter out Serialnumbers via Prefix #62

Closed floriangrotz closed 1 year ago

floriangrotz commented 1 year ago

Is your feature request related to a problem? Please describe: I have Hueactors - starting with Serial #BEE They are shown via the Plugin in Homekit

hue_bee

IMG_1294

IMG_1295

Describe the solution you'd like: Possibility to filter out certain Prefixes - like BEE Already pointed out in #48

Describe alternatives you've considered: removing in mappings - but it is a lot of effort

pgerke commented 1 year ago

Looking at https://github.com/pgerke/homebridge-freeathome-local-api/blob/162eb581c7f1b8ae69c50a94967a819060b5934b/src/platform.ts#L221 and the following lines, your Hue actuators should be skipped during discovery.

This is probably related to accessories that are already cached in Homebridge. At the moment, they are exempt from the checks that are done during discovery. This is intentional, because I'd rather not remove accessories the user might have configured already (e.g. assigned to rooms, used in automations, ...). When an accessory is removed all those settings are deleted as well which might cause a lot of effort.

Would the Remove Single Cached Accessory option from the Homebridge settings solve your issue?

floriangrotz commented 1 year ago

Did fix the issue - thanks !

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.