#sunrise or sunset automation will NOT trigger

1 messages · Page 1 of 1 (latest)

languid kernel
#

I have been trying to adjust my location and my clock. But the automation will not trigger on sunrise or sunset. I am able to manually trigger the automation and all the steps work. Just the automation won't trigger automatically.

alias: Sunrise Controller
description: ""
triggers:
  - trigger: sun
    event: sunrise
    offset: "-00:40:00"
conditions: []
actions:
  - type: turn_off
    device_id: e33adcbec765de673f2f4aa3c71c0f5f
    entity_id: 90c797fc22812b773c1d4a6f0db70f2d
    domain: light
  - type: turn_off
    device_id: b4d7ffd9419f8c72656ab46959d9332a
    entity_id: 0b9f95df5883829c093809a42580494e
    domain: light
  - type: turn_off
    device_id: f62ae3971f0afa94b50d1b5674614a7e
    entity_id: 90d6bec6159c976adf65424934b36c03
    domain: light
mode: single
craggy wadiBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

ember brook
#

I don't see why that wouldn't work as long as you have the proper location set for HA

languid kernel
#

ok wait it does have my location as China... I put in the lat/long for my city

#

but I'll try again

ember brook
#

That is the problem

#

Subscription is unrelated

languid kernel
#

google says my lat and long is:

#

numbers N and numbers W

#

but everytime I input that it puts me in china

sour verge
ember brook
#

Your west longitude should be negative

languid kernel
#

it is the city as a whole but understood

ember brook
#

It literally points at a house 🙂

languid kernel
#

ah

#

well not my house lol

ember brook
#

Flowers are on their way. Too late

languid kernel
#

ok so you think that will solve the issue?

#

cause it went 20 hours and didn't trigger so I have been going in and manually triggering it

sour verge
#

having the right value should certainly help 😛

ember brook
#

Yes

languid kernel
#

ok I'll wait and watch thank you for the assistance!

ember brook
#

You should really be using sun elevation, but sure

languid kernel
#

I had read that before

sour verge
languid kernel
#

but didn't understand the pros

ember brook
#

They're explained in the docs

craggy wadiBOT
#

Why use the sun elevation trigger or condition rather than a time offset from sunset or sunrise? Because the elevation more consistently relates to the light level than a fixed time offset. An hour before sunset is very different light levels on the longest day than the shortest day, for example.

ember brook
#

And there

languid kernel
#

wow you guys are on the documention ball!

#

ok well I am wanting to see if I can trigger it with the simple time offset cause I know exactly when I should be expecting the trigger. Once that is resolved, I'll go all fancy with sun elevation