Skip to content
This repository was archived by the owner on Dec 7, 2025. It is now read-only.

Start_time sunset not working correctly. #14

@JBakers

Description

@JBakers

My apps.yaml:

exterior_periodic_lights:
  module: update_lights
  class: update_lights
  run_every: 300
  entities:
    - light.spot_buiten
  min_brightness_level: 40
  max_brightness_level: 100
  start_time: sunset 
  end_time: sunrise
  transition: 0
  start_lights_on: True
  stop_lights_off: True
  sensor_log: sensor.test_brightness

Everyday sunset is set at 23:45:11.
I checked sun.sun integration:

next_dawn: "2025-07-06T02:40:47.139070+00:00"
next_dusk: "2025-07-06T20:42:46.974314+00:00"
next_midnight: "2025-07-05T23:42:08+00:00"
next_noon: "2025-07-06T11:42:02+00:00"
next_rising: "2025-07-06T03:28:20.877560+00:00"
next_setting: "2025-07-06T19:55:24.651504+00:00"
elevation: -10.04
azimuth: 328.74
rising: false
friendly_name: Sun

Looks alright.
I added tz to appdaemon config to be sure:

system_packages: []
python_packages:
  - babel
init_commands: []
log_level: info
tz: Europe/Amsterdam

I also removed the config from apps.yaml, restarted appdaemon and reenabled it, same problem.

When i put for example:

start_time: "22:35:00"

It shows Execution Time 7-7-2025, 00:17:00
Its currently 6-7 00:20

Anyone have an idea?

Greetings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions