Hello everyone.
I’m trying to configure a new Blueprint to set actions when pressing a Philips Hue controller.
I’m facing a knowledge gap in here. My goal is be able to receive as input and counter and a number and in the actions compare the “state” of the counter (0, 1, 2…) with the received number (like a index number).
Blueprint:
blueprint:
domain: automation
name: Some action
input:
clickCounter:
name: Click Counter
selector:
entity:
filter:
domain: counter
scene_index:
name: Scene Index (in Click Counter)
selector:
number:
min: 0
max: 10
mode: box
unit_of_measurement: index
triggers:
# ...
actions:
# - variables:
# selected_mode_var: !input scene_index
- if:
- condition: state
entity_id: !input clickCounter
state: !input scene_index
# THIS VALIDATION IS WHAT I'M TRYING TO SOLVE
# this not work, I've also tried with variable and template, but so far I wasn't able to figure it out
then:
# do something
- stop: Nothing to do
I out of ideas in how to compare the counter with the number.
Could someone help me? Thanks a lot!