Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105875

Add number to actual input_number value

$
0
0

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

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>