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

More powerful channel selectors #73

Open
Yoric opened this issue Apr 4, 2016 · 0 comments
Open

More powerful channel selectors #73

Yoric opened this issue Apr 4, 2016 · 0 comments

Comments

@Yoric
Copy link
Collaborator

Yoric commented Apr 4, 2016

I'd like to write a Thinkerbell rule (or, really, any send operation) that turns off all lights in the living room. Let's assume that lights are defined by channels with kinds OnOff and Luminosity.

How can I do it?

  1. Sending Off to all channels that support OnOff in the living room can turn off devices that are not lights, so this is not what we want.
  2. Requesting the list of services that have channels OnOff and Luminosity, then taking the OnOff channels of such services gives us that list, but we need to rely upon the Id of services, which means that the rule will break when we replace the device.

We need better selectors.

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