I have a Lutron Aurora that I have paired. I can’t get the thing to bind, which is probably good because I have read that it won’t report state back to HA anyways.
That being said, trying to set up an automation that when a zha_event occurs that it will read that event and based on a value range it will brighten or dim the bulb. However I can’t figure out how to have a trigger that is based on the event data being in a range.
In the below snippit, you will see args: with 2 values, I want to set a range based on the arg being less then 255 it would dim, but if above 0 it would brighten. How can i create a trigger on an automation for that?
It will always dim but not rise. Is it possible since there are two arguments, one of which is always 2, that it’s not picking that argument?
"args": [
255,
2
Using the above example the second argument “2” is always static, never changes, but the one that is 255 is the one that I want it to look at. Is there a way to make sure that it recognizes that argument and and when the second one is 2?
I figured it out… But to answer your question the argument above has to values, so was trying to see how to pull the value of the 1st value, and make an action based on that. However, the second argument had to equal 2.
Apparently this can be done by using the [0] for the first value and [1] in the second value.
So {{trigger.event.data.args[0] > 127}} is for the top value, and {{trigger.event.data.args[1] == 2}} represents when the second value equals 2. This allows for you to use conditions to trigger the action like below.
I’m sorry, but I didn’t understand what you wanted to do from your posts. At one place you wrote the second argument is always static, never changes and now suddenly it does xD
However, I’m glad that you figured it out.