I got stung by the emulated_hue thing earlier this week. Set up Cloud which works okay except for no fan speed control. I realize I need to add a template to configuration.yaml. I have 4 fans
I found this template on the HA config pages
# Example configuration.yaml entry
fan:
- platform: template
fans:
bedroom_fan:
friendly_name: "Bedroom fan"
value_template: "{{ states('input_boolean.state') }}"
speed_template: "{{ states('input_select.speed') }}"
oscillating_template: "{{ states('input_select.osc') }}"
direction_template: "{{ states('input_select.direction') }}"
turn_on:
service: script.fan_on
turn_off:
service: script.fan_off
set_speed:
service: script.fan_speed
data_template:
speed: "{{ speed }}"
set_oscillating:
service: script.fan_oscillating
data_template:
oscillating: "{{ oscillating }}"
set_direction:
service: script.fan_direction
data_template:
direction: "{{ direction }}"
speeds:
- '1'
- '2'
- '3'
Am I correct in thinking that dropping this in configuration.yaml will get me going? Can I make 4 entries under fans:
or do I have to make 4 complete entries, 1 for each fan.
Am I missing anything? Not too good at templating.