#Issue with numeric_state trigger on sun.sun[elevation]

1 messages · Page 1 of 1 (latest)

wet osprey
#

Having a strange issue where automation is not being triggered by numeric_state.
relevant yaml:

automation:
  - id: turn_on_soffit_lights
    alias: "Turn on Soffit Lights"
    description: "Turn on Soffit Lights"
    mode: single
    triggers:
      - trigger: numeric_state
        entity_id: sun.sun
        attribute: elevation
        below: 50.0    ## threshold set high to test.
    conditions: []
    actions:

Included SS of attributes of sun.sun -- well below threshhold ( might be hard to see)

elevation: 35.75
azimuth: 234.03
rising: false
friendly_name: Sun

included SS of soffite lights' history -- not triggered by automation

fervent plank
#

Did it start above 50?

#

See the blue box

wet osprey
#

I didnt check, honestly -- I actually am using from docs too

Home Assistant

All the different ways how automations can be triggered.

fervent plank
#

It's important. See the blue box

wet osprey
#

ope - hold on

wet osprey
#

Sorry -- Rob, I'm assuming you're referencingthe Note box ... which, here is current

#

I've edited the automation to 31

#

and reloaded

#

according to the solar calculator, at 16:08:44 (local) the elevation should trigger the automation

#

well. -- I guess nevermind; I'm going to guess that it was a PICNIC issue, this time

#

idk

#

chuckles maybe I just had to talk to y'all about it -- We've been down that road before anyway

#

So just so I don't start scratching my head in a few hours, (I've change the 'on' time to 4* elevation. of tjhe 'off' automation triggers at 2* they would probably fight for who wins, yes?

fervent plank
#

I hope you got from the note that it needs to cross the threshold

#

What is now is only half the picture

wet osprey
#

no, I do -- I think it was just the fact I needed to complain to someone for it to work

#

lmao

fervent plank
#

No, they won't fight

#

Each triggers exactly once

wet osprey
#

gotcha. so, since it has to cross, which means 2.1 -> 1.9 == false (since trigger is for above) and 1.9 -> 2.1 == true,

#

gotcha

fervent plank
#

yes

wet osprey
#

Thanks Rob .. no XY problem today, just a PICNIC