#Light automation not working after update?

1 messages · Page 1 of 1 (latest)

left crag
#

Since the latest update, are there any known issues with light automation?
I previously configured my lights to dim to 25% at night and to 75% in the evening. Unfortunately, this automation no longer works for me after the update.

hushed void
#

There is no general problem like that

#

Please provide the YAML for the automation and what lights they are for future help

left crag
#

Thank you for the information. I’m still not completely familiar with Home Assistant. So far, I’ve been using it in a way where I turn the light on the first time, and then turn it on again to set the desired brightness.

#
alias: Licht an (25%)
description: ""
triggers:
  - type: occupied
    device_id: 38577c1d8197a519078c497983093614
    entity_id: d73a1c339f742442e95375d9e6175e5a
    domain: binary_sensor
    trigger: device
conditions:
  - condition: sun
    before: sunrise
    after: sunset
  - condition: time
    after: "23:00:00"
actions:
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
    brightness_pct: 25
mode: single
#

I’m using Zigbee lights and Govee local lights. If I’ve done something incorrectly, please let me know peek

placid crownBOT
#

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.

left crag
#

Is adjusted

hushed void
#

those conditions will only be satisfied for 1 hour a day, from 23:00-midnight

#

seems unlikely that's what you had in mind

#

the sun condition is essentially not doing anything there

left crag
#

Ohh

hushed void
#

unless you live near the poles, I guess

#

in which case maybe it's never satisified

left crag
#

I actually want it from 11:00 PM until sunrise.

#
alias: Licht an (25%)
description: ""
triggers:
  - type: occupied
    device_id: 38577c1d8197a519078c497983093614
    entity_id: d73a1c339f742442e95375d9e6175e5a
    domain: binary_sensor
    trigger: device
conditions:
  - condition: time
    after: "23:00:00"
    before: "08:00:00"
actions:
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
    brightness_pct: 25
mode: single
#

Does this look correct?

hushed void
#

that will do 11PM to 8AM

#

if you really want it to stop at sunrise, you can use a later time for before: (like even 12:00) and then add a sun condition back with before: sunrise

#

so the later time won't matter, but will cover midnight through the morning, and then the sunrise condition will restrict it to before sunrise

left crag
#

Ok!

#

Thanks

hushed void
#

below_horizon or use sun elevation to more precisely represent the amount of light

left crag
#

Quick question: is it possible to set it, for example, from 10:00 PM until sunrise, or does it reset at midnight?

sharp wyvern
#

That would be an or condition.

#

After 10PM, or before sunrise.

hushed void
#

And those would be two conditions in an or: block. You can't combine a time and "sunrise" in a single condition

left crag
#

Like this ?

alias: Dimmer
description: ""
triggers:
  - type: occupied
    device_id: 38577c1d8197a519078c497983093614
    entity_id: d73a1c339f742442e95375d9e6175e5a
    domain: binary_sensor
    trigger: device
conditions:
  - condition: or
    conditions:
      - condition: time
        after: "22:30:00"
      - condition: sun
        before: sunrise
actions:
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
  - type: turn_on
    device_id: de2c2c1b6a80b5bdae18708f40f9cc13
    entity_id: dc0e748657fa82660cd4883bd76dfe4a
    domain: light
    brightness_pct: 25
mode: single