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

Need help with data_template in script

$
0
0

@iStitch07 wrote:

Hey, all
I trying to setup multi-switch for my purifier, but have problems.
why it not working, help ))

lr_mode_change:
  sequence:
    service: fan.set_speed
    data_template:
      entity_id: fan.livingroom_airpurifier 
      speed: >
        {% if is_state("sensor.xiaomi_lr_airpurifier_mode", "auto") %}
          favorite
        {% elif is_state("sensor.xiaomi_lr_airpurifier_mode", "favorite") %}
          silent
        {% else %}
          auto
        {% endif %}

Posts: 17

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95558

Trending Articles



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