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

Automation with script_template in action

$
0
0

@bookandrelease wrote:

Hello. I am having a hard time getting this automation to function. I tried changing the state in developer tools and it will never fire. Any ideas? Thanks in advance

#humidifier
- id: "humidifier_off"
  alias: "Humidifier Off"
  trigger:
    platform: numeric_state
    entity_id: sensor.aeon_labs_zw100_multisensor_6_relative_humidity
    above: 52
    below: 38
    
  action:
    service_template: >-
      {%- if states('sensor.aeon_labs_zw100_multisensor_6_relative_humidity')|float > 52 -%}
      script.umidifier_power_off
      {%- else -%}
      script.humidifier_power_on
      {%- endif -%}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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