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

Device matching to specific to allow merging devices. #601

Open
EdenNelson opened this issue Aug 30, 2022 · 0 comments
Open

Device matching to specific to allow merging devices. #601

EdenNelson opened this issue Aug 30, 2022 · 0 comments

Comments

@EdenNelson
Copy link

I'm new to HA, but something that has bothered me is a single device would appear in HA as multiple devices.
I attempted to merge my Google devices, but the Google Home integration kept creating a new device.

The quick fix was to remove the name and manufacturer matching in entity.py. After merging the device in core.device_registry I had a single device with all features and controls from the multiple integrations. In this case: Google Home, Google Cast, and Unifi Network.

entity.py

    def device_info(self) -> DeviceInfo:
        return {
            "identifiers": {(DOMAIN, self.device_id)},
            #"name": f"{DEFAULT_NAME} {self.device_name}",
            #"manufacturer": MANUFACTURER,
            "model": self.device_model,
        }
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

1 participant