Hi, I have an input_number that I want to give value to when I click on the entity. I know how to give it a fixed value
double_tap_action:
action: call-service
service: input_number.set_value
target:
entity_id: input_number.slider_tiempo_luzcontrol
data:
value: 120
but what I want is to add 60 to the current value. I have tried with
hold_action:
action: call-service
service: input_number.set_value
data:
value: "{{ states('input_number.slider_tiempo_luzcontrol')|float(0) + 60 }}"
target:
entity_id: input_number.slider_tiempo_luzcontrol
but it doesn’t works. Is there any way to do what I want?
Regards