View Single Post
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#306
Originally Posted by mosen View Post
great work and cool new ui!

I would like to activate my "sleep" situation if charger and headphones are connected. Now, if both conditions are added there is an "or" between the two. I would need the funktionality of an "and".
Is that possible in your current implementation?
Thanks,

No, it is not possible with the current implementation. Actually I don't think anyone has even requested this before. The Accessory condition is a bit special case as it is now a logical grouping of completely unrelated things. The grouping was made entirely on UI design basis and causes difficulty for this kind of corner case.

So, I need to think about it - the easiest solution would be to just break the plugin apart so that "AND" would become the default between the different options. But I would then also need to maintain compatibility with the existing uses of Accessory condition.

Br,
Heikki
 

The Following 4 Users Say Thank You to hhaveri For This Useful Post: