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 rule trigger of Color#State #5614

Closed
gooman-uk opened this issue Apr 10, 2019 · 15 comments
Closed

Add rule trigger of Color#State #5614

gooman-uk opened this issue Apr 10, 2019 · 15 comments
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended

Comments

@gooman-uk
Copy link

Have you look for this feature in other issues and in the wiki?
Yes
Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Rule Triggers include Power and Dimmer, but for multi-color devices it is missing the inclusion of Color as a trigger. There seems to be no way to trigger a rule on Color change.

Describe alternatives you've considered
None

Additional context
None

(Please, remember to close the issue when the problem has been addressed)

@blakadder blakadder added feature request (devs?) Action - awaiting response from developers enhancement Type - Enhancement that will be worked on and removed feature request (devs?) Action - awaiting response from developers labels Apr 10, 2019
@gemu2015
Copy link
Contributor

have a look at this thread =>#5689

its easy with a script

@Jason2866
Copy link
Collaborator

Jason2866 commented May 19, 2019

Please close this issue Script support is now in Tasmota #5816.
With script you can do.

@ascillato2
Copy link
Collaborator

Closing this issue as there is now a workaround using scripting. Please, check the documentation for an example for doing this. Thanks.

@DavinKD
Copy link

DavinKD commented Jan 21, 2020

Any chance we can reopen this request? While it can be done with scripts, I would think Rule1 on color#state do.... would be much easier for most.

@qualar
Copy link

qualar commented Mar 24, 2020

I agree it would be very useful to have in rules.

@GaryMilne
Copy link

I too would have found this very useful.

@ascillato
Copy link
Contributor

I too would have found this very useful.

Hi, this is a very old issue. This has been implemented as Color#Data for triggering a rule, and as %color% as a variable for rules.

Please, take a look at #14556

Thanks.

@ascillato2 ascillato2 added the fixed Result - The work on the issue has ended label Apr 9, 2022
@GaryMilne
Copy link

GaryMilne commented Apr 9, 2022 via email

@ascillato
Copy link
Contributor

ascillato commented Apr 9, 2022

Please, re read my comment. Color#state is not a valid trigger. That won't work. The trigger that is executed when you change the color is color#data. Besides, you have a variable for the color that is %color%. Please, also take a look to the linked discussion that have examples of how to use it.

@GaryMilne
Copy link

GaryMilne commented Apr 17, 2022 via email

@sfromis
Copy link
Contributor

sfromis commented Apr 18, 2022

You do not need to go via Mem15, you could just do whatever directly, including having %value%, instead of using Mem15. And if you had to do it indirectly, better use a Var instead of a Mem, as the latter causes flash writes, subtracting from the finite lifetime.

@GaryMilne
Copy link

GaryMilne commented Apr 29, 2022 via email

@sfromis
Copy link
Contributor

sfromis commented Apr 29, 2022

To me, your rules looks like you only need a very short lifetime, not what Mem gives you which is lifetime across boots. Other than that, you get the same with Var, just without wearing down flash.

What I meant with using trigger %value% directly, based on your previous comment, is that simple usage of triggers can be done without staging the value in a Var/Mem, but that does indeed not cover the use case of it being part of a further trigger expression. This has nothing to do with your #2.

However, since recently, %color% is now available as a rule variable, but that's not some sort of general replacement for using triggers to pick up values.

@GaryMilne
Copy link

GaryMilne commented Apr 30, 2022 via email

@GaryMilne
Copy link

GaryMilne commented Apr 30, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

10 participants