I want to set the value of an input_number to the value of another input_number. After searching the documentation and forum the simplest way I’ve found that works is:
action:
- service: input_number.set_value
data_template:
entity_id: input_number.variable_b
value: "{{ states('input_number.variable_b') }}"
target:
entity_id: input_number.variable_a
There must surely be a simpler way to do this. In any other language I could simply write:
input_number.variable_a = input_number.variable_b
or maybe:
$input_number.variable_a = $input_number.variable_b