#Light automation not working after update?
1 messages · Page 1 of 1 (latest)
There is no general problem like that
Please provide the YAML for the automation and what lights they are for future help
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 
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.
Is adjusted
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
Ohh
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?
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
I also suggest using this rather than sunrise: https://www.home-assistant.io/docs/scripts/conditions/#sun-condition
below_horizon or use sun elevation to more precisely represent the amount of light
Quick question: is it possible to set it, for example, from 10:00 PM until sunrise, or does it reset at midnight?
And those would be two conditions in an or: block. You can't combine a time and "sunrise" in a single condition
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