hmm, getting a weird error with this.
Action script.office_fan_power_toggle uses action fan.turn_on which was not found.
If i run script.office_fan_power_toggle in isolation, it works fine. I don't know what fan.turn_on even is, quite odd.
fan:
- platform: template
fans:
office_fan:
friendly_name: "Office fan"
value_template: "{{ states('input_boolean.state') }}"
turn_on:
action: script.office_fan_power_toggle
turn_off:
action: script.office_fan_power_toggle
set_oscillating:
service: script.office_fan_power_oscillate_horizontal
data:
oscillating: "{{ oscillating }}"
speed_count: 12
I tried to use service instead of action, but it didn't change anything and I think those terms are interchangeable anyway..