Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake clusters/endpoints. How to skip? #43

Closed
pawelka opened this issue Nov 17, 2018 · 2 comments
Closed

Fake clusters/endpoints. How to skip? #43

pawelka opened this issue Nov 17, 2018 · 2 comments

Comments

@pawelka
Copy link
Contributor

pawelka commented Nov 17, 2018

Probably improvement is needed.

I'm using Xiaomi staff and I noticed that Aqara wall switch single button replay for endpoints which doesn't exists. For example this single key button work on endpoint 2 and endpoint 1 do nothing. Another example is wireless switch with responding for cluster 18 and to nothing.

Idea for improvement is to introduce device configuration file (aka file later). Device is configured per manufacturer and type.

I see two options :

  1. file contains device clusters and endpoints if match to paired on configuration is used and if not autodiscovery applied as is
  2. file contains only cluster & endpoints to exclude when scanning (deconz use exclusion in code, but easier will be have file)

I prefer first options because in case of pairing new device which exists adding will be fast because scan is not needed or mix 1) and 2) is possible.

This is needed for home-assistant plugin which creates entities automatically and in case of fake endpoints and clusters there are fake entities :-/

@pawelka pawelka changed the title Fake clusters how to skip Fake clusters/endpoints. How to skip? Nov 17, 2018
@doudz
Copy link
Owner

doudz commented Nov 19, 2018

Until now I was opposed to create such files, because autodiscovery able to support virtually any device.
But yes, there's limitation.
Maybe we can do both, use file for known devices and autodiscovery when needed

@doudz
Copy link
Owner

doudz commented Jan 8, 2019

Fixed in 0.25.0 using templates
so now need to generate templates

@doudz doudz closed this as completed Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants