Skip to content

Confusion about sleep lights in 3.0 #247

Answered by jseidl
bmcclure asked this question in Q&A
Discussion options

You must be logged in to vote

So the logic is quite involved and having who wrote the code, write the documentation causes these issues 😆

Taking it from the top, some axioms

  1. Area light control, it the highest level, is tied with area occupancy. Meaning area occupied -> logic will run to turn on, area clear -> lights will turn off (if configured).
  2. Area light control depends on the switch switch.area_light_control_$area_name to be on

Then the flow is as follows

  1. If all the above constraints are met (area is occupied and area_light_control switch is on, then proceed
  2. If there's a dark entity configured, lights will only turn on if dark, if not they'll turn on every time the room is occupied
  3. When an area is occupied, it …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bmcclure
Comment options

@jseidl
Comment options

Answer selected by jseidl
@bmcclure
Comment options

@jseidl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants