# 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.

![](https://1587494504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ltn3vQOSB-YGC6qLZu_%2F-LtnfUp3wq7ooDkLQCy9%2F-LtnfmGNjlWEImyK1RVy%2FSkjermbilde%202019-11-16%20kl.%2011.08.03.png?alt=media\&token=2192e1a9-b8d1-49ce-b503-6b8daf681768)

### 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.

![](https://1587494504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ltn3vQOSB-YGC6qLZu_%2F-LtnfUp3wq7ooDkLQCy9%2F-LtngFag4t3h87rFCjGT%2FSkjermbilde%202019-11-16%20kl.%2011.10.09.png?alt=media\&token=a57fe5b3-93c5-436a-af43-1698731d2ac0)
