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

Automation multiple triggers

$
0
0

@richard-g8jvm wrote:

  - alias: landing light on if out
    trigger:
      #first trigger     
      - trigger:
        platform: time_pattern
        minutes: '/5'
      # second trigger
      - trigger:
        platform: numeric_state
        entity_id: sun.sun
        value_template: "{{ state_attr('sun.sun', 'elevation') }}"
        below: -5.0
    condition:

Trying to create a mutilple trigger using the template in the docs
everything after condition: works, yet if I use the config checker on automations.yaml
its points to an error in an already working section not related to the above
Originally I had, which worked, the time ie. after 1630 and before 2230
It would be nice to use after sunset, hence the use of negative elevation
should it be similar to condition statements
sorta

    trigger:
      trigger: and
      trigger:    
        - trigger: platform <whatever>

current version 0.103.6
Normally copy and paste from the docs is safe and works

Posts: 20

Participants: 7

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



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