Only using Wink Switches component in HA?

Hey! Would I be able to only use the switches component from Wink? I have iHome plugs that I am unable to connect another way but everything else that Wink supports I am able to use with HA already.
The problem is that when I add in Wink, it brings in all the locks and lights etc from the hub but since I already have these connected to HA it creates doubles that control the same thing, for example, light.bedroom_lamp and light.bedroom_lamp_2 or lock.front_door and lock.front_door_2

Any ideas? Thanks in advance!

Hey, so this has been brought up a few times. I have plans on implementing a filtering config option but haven’t had a chance to do it yet. If you really only want switches you can use the following “hack” to make that happen.

Place https://hastebin.com/elimezanoc.py into the following file YOUR_HA_CONFIG_DIR/custom_components/wink/__init__.py what this is doing, is removing the setup of all of the other device types. Take a look at line 148 in https://hastebin.com/gebazutibi.py and compare with the one above to see whats going on.

1 Like

Thanks very much. I’ll give that a shot. I just remembered that the only other thing I’d really like to keep from the wink hub is 2 zwave sensors I have on there - I’m guessing that the putting that file would remove those and only retain the switches?

I appreciate the help with this!

Correct, but take a look at both files, just keep “sensor” or “binary_sensor” as well in the list.

1 Like