> For the complete documentation index, see [llms.txt](https://homey.solweb.no/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://homey.solweb.no/aggregated-state/dark-or-bright.md).

# Dark or bright

I've added two boolean logic variables, `dark` and `bright`.

### Dark

As simple as if is dark outside or not. Turn on at sunset, and turn off when sun rise.

![](/files/-LtnfmGNjlWEImyK1RVy)

### Bright

I want a boolean variable to flag when there is bright light outside. Typically I use this to for some of the rooms with a lot of windows, turn off the lights in the middle of the day in the summer.

![](/files/-LtngFag4t3h87rFCjGT)
