Hey community!
Using the Fan template in the configuration.yaml i want to get the fan speed from input_number.fan_a_percentage
then choosing between 5 posibilities but I keep geting failed to call service fan/set_percentage. expected float for dictionary value @ data['value']
The code is:
(The problem is in the First part, nos in the choose part.)
alias: fan_a_set_speed
sequence:
- service: input_number.set_value
target:
entity_id: input_number.fan_a_percentage
data:
value: "{{ percentage }}"
enabled: true
- choose:
- conditions:
- condition: numeric_state
entity_id: input_number.fan_a_percentage
above: 0
below: 25
sequence:
- service: remote.send_command
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: fan_a
command: speed_1
target:
device_id: 8d1a87b0fc39ecfff17f3e73d53e0209
- conditions:
- condition: numeric_state
entity_id: input_number.fan_a_percentage
above: 35
below: 45
sequence:
- service: remote.send_command
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: fan_a
command: speed_2
target:
device_id: 8d1a87b0fc39ecfff17f3e73d53e0209
- conditions:
- condition: numeric_state
entity_id: input_number.fan_a_percentage
above: 55
below: 65
sequence:
- service: remote.send_command
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: fan_a
command: speed_3
target:
device_id: 8d1a87b0fc39ecfff17f3e73d53e0209
- conditions:
- condition: numeric_state
entity_id: input_number.fan_a_percentage
above: 75
below: 85
sequence:
- service: remote.send_command
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: fan_a
command: speed_4
target:
device_id: 8d1a87b0fc39ecfff17f3e73d53e0209
- conditions:
- condition: numeric_state
entity_id: input_number.fan_a_percentage
above: 95
sequence:
- service: remote.send_command
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: fan_a
command: speed_5
target:
device_id: 8d1a87b0fc39ecfff17f3e73d53e0209
mode: single
icon: mdi:ceiling-fan
I have search everywhere and no luck!