Wink Block Entities From Being Created

I want to be able to block specific Wink devices from being created as entities within Home Assistant.

Specific example is that I’ve got a Nest Thermostat connected to Home Assistant directly. The thermostat is also connected to Wink and then Wink is connected to Home Assistant. I want to be able to remove the Wink-created thermostat instance within Home Assistant to keep things neat/tidy and reduce unnecessary workload for state updates.

I believe this could be achieved by blocking the entity from being created in the first place, using some identifier within Home Assistant config like the Wink object ID? Of course, you’d have to add the object ID as an attribute to all existing Wink entities, run Home Assistant once to learn the object IDs you don’t want, update the config, then restart Home Assistant.

@w1ll1am23 What do you think? Is it possible?

Should be possible. I’ll take a look at it.

https://github.com/home-assistant/home-assistant/pull/12159

As mentioned in the PR, it looks good, confirmed that it’s working for me.

Thanks for the quick response on this!

No problem glad to help out. I’ll get the PR to a green status and get it merged in. Should be in the next release.

1 Like

I see the PR has stalled out a bit due to change requests.

Can we keep this moving and merged?

I’ll be glad to help!

Sorry about that, I have been busy with some other projects if you want to take a stab at adding in Wink test cases that would be helpful, but I should be able to start work on this in the next week or so.

No need to apologize, I’ll see what I can do with some test cases.

@w1ll1am23 it’s been awhile and I’m sure you’re busy, but any more progress on excluding Wink entities? I’ve been using your initial PR code as a custom component for the past few months and would love to get this baked in fully.

Sorry, no I haven’t had a chance to work on any of it. I have been renovating my home and it’s taking most of my free time, things should slow down soon though so I will be able to work on it soon.

I know you’re busy, but if you’ve got a few minutes I could use some guidance.

I started tackling this myself, using components.helper.entityfilter, and am able to filter based on domain.

Link to branch.

However, I’m struggling with individual entities since the filter requires the complete entity_id to be passed to it.

I’m trying to find where the entity_id is generated for each component, ideally without having to generate it myself only to filter against it.

Any thoughts? If you’re on Discord, find me @schmittx.