Skip to content

Commit

Permalink
docu on_night_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lubeda committed Jan 31, 2024
1 parent f2a2f51 commit 41f6844
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,17 @@ The trigger ```on_show_display``` is triggered when the screen is turned on or o

The trigger ```on_night_mode``` is triggered when the night mode is turned on or off. In lambda's you can use one local boolean variable:

```yaml
ehmtxv2:
  ....
on_night_mode:
lambda: |-
if (state)
id(rgb8x32)->icon_screen("night","true");
else
id(rgb8x32)->icon_screen("night","false");
```

**state** (Night mode state, boolean): value to use in lambda

##### Change something for each clock circle
Expand Down

0 comments on commit 41f6844

Please sign in to comment.