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

Add Selector script #295

Closed

Conversation

CrazyIvan359
Copy link
Contributor

@CrazyIvan359 CrazyIvan359 commented Dec 8, 2019

Selector allows you to have a group of Sources that can be linked to
any of the Endpoints in the Endpoints group. This allows you to quickly
repurpose automation devices without having to edit your configuration.

I created this to simplify the repurposing of some Sonoff S31 outlets I got.
Using this I can quickly change what part of my automation they are linked to
without having to change any configuration or channel links.

I am submitting this as a draft because I want to have it compare accepted commands/states as the method for determining compatibility for Source -> Endpoint links. Currently only same type Items can be linked.
This has been addressed and is working in my tests.

@rkoshak I saw on the forum you just purchased some smart outlets, perhaps this will interest you for them. Feedback is welcome.

Signed-off-by: Michael Murton <6764025+CrazyIvan359@users.noreply.github.com>
@CrazyIvan359 CrazyIvan359 changed the title Add Selector Add Selector script Dec 8, 2019
@rkoshak
Copy link

rkoshak commented Dec 9, 2019

This looks like a really clever approach to solve a common problem.

But for me, it's way less work to just redo the Channel Links or to enable/disable Rules than the configuration required to make this work for me. Perhaps if I had more than five devices I need to re-purpose it would be a different story. But even that number is misleading as I only really use one of these smart plugs during the off season, the rest live in a drawer.

What I currently do is I have a "Tis the season" switch. When it changes, I disable/enable the humidifier Rule and Christmas lights Rule based on it's state. I then have two Items linked to the same channel. This is all I need so I won't be a good test case.

But I'm certain that there will be many users who will benefit from this. I particularly see this as being useful for other Helper Library contributors as well.

@CrazyIvan359
Copy link
Contributor Author

Thanks for the feedback Rich!

@CrazyIvan359 CrazyIvan359 deleted the add-selector branch January 6, 2021 03:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants