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

Fan Template Speed - Dyson IR with Broadlink RM Mini

$
0
0

@eximo84 wrote:

I have a Dyson IR fan which i am trying to setup with a fan template. My broadlink is setup with switches but i can also send IR codes directly.

For the toggle on/off its a single button click and oscillate also has a single click but has the added complication that it can switch on the fan. However the basics work and the template allows me to switch on/off and oscillate.

fan:
  - platform: template
    fans:
      dyson_fan:
        friendly_name: "Dyson Fan"
        value_template: "{{ states('switch.dyson_cool_fan_power') }}"
        oscillating_template: >
            {% if is_state("switch.dyson_cool_fan_sscillate", "on") -%}
              true
            {%- else -%}
              false
            {%- endif %}
        turn_on:
          service: switch.turn_on
          entity_id: switch.dyson_cool_fan_power
        turn_off:
          service: switch.turn_off
          entity_id: switch.dyson_cool_fan_power 
        set_oscillating:
          service: switch.toggle
          entity_id: switch.dyson_cool_fan_sscillate

However i am trying to setup a speed but im lost. The fan supports speeds 1-10 and the increase is a single button up/down press. The fan remembers the last speed set so if it was at 8 when switched off it will be at 8 next time its switched on.

I have created an input select to hold the speed values and have setup scripts to send the IR codes for up and down but i dont know how to now add that to the fan template to make it work for up and down in speed when setting a speed.

Im thinking do i tell the Fan template to adjust my input select which then triggers an automation to run the script? Or should the fan template handle that?

I found this thread which uses an input slider and the automations allow for adjustments but again im struggling to see how to adapt that to the fan template.

Any help appreciated.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99103

Trending Articles



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