- 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
The error message refered to a line 20 lines above the section being worked on.
Tottaly erroneous and not kept.
That section works !!!, and has nothing to do with the multiple triggers, infact a different entity
I repeat again for the ability of those that can not read the error message was not kept as it was erroneous
hashing out the new section shows no errors anywhere on the file, which removes pasting errors.
Config errors are only valid if on a section āin progressā, not something which has been working for months and still is.
IF the original question is answered there is no need for an error messageto be postes which again was not valid
Automations.yaml is now 340 lines long, so not that long
OK, we can only help you if we know what is wrong.
You said when you put the double trigger in you get an error, but when you take it out the error goes away. That makes the error message relevant.
So, instead of arguing with, and being rude to, everyone who is trying to help you go back to your automation, put the double trigger in, run the check and post the error message.
We couldāve fixed this by now if you had done this in the first place.
Richard, this is not a conspiracy, we have nothing to gain here.
Iām only posting now given others (failed) attempts to gain (only possibly) vital information to help solve a problem (given the above weāre not particularly helping you, just trying to solve a mystery)
Please run the check, post the error and your code from the indicated section and from where you think the error actually lies.
Tom, given what the OP wanted would not this be better with just a 5 minute trigger and an action service template turning the light on or off depending on sun elevation ?
Sorry Iām lost, what your saying is that we should just answer the question asked rather than what we know to be the problem to be solved ?
Where does it say that ?
Isnāt that obstructive ? Itās certainly not teaching new methods or pointing out different ways to solve problems and help them help themselves for ānext timeā