Skip to content

Commit

Permalink
2023.9.1-103: Night mode in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan authored Oct 11, 2023
1 parent ed0f36b commit 2db8dfd
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- `night_mode_on`
- `night_mode_off`
- New Yaml option `night_mode_screens: [2, 3, 16]` - list of screens to be displayed in night mode.
- `on_night_mode` trigger
- Added `on_show_display` trigger
- Added the ability to specify a screen ID - `icon_name|screen_id`
- Added icon and date output screen
- `icon_date(iconname, lifetime, screen_time, default_font, r, g, b)`
Expand Down Expand Up @@ -667,6 +669,8 @@ ehmtxv2:

**clock_interval** (optional, s): the interval in seconds to force the clock display. By default, the clock screen, if any, will be displayed according to the position in the queue. **If you set the clock_interval close to the screen_time of the clock, you will only see the clock!** (default=0)

**night_mode_screens** (optional, screen array, default [2, 3, 16]): List of screens displayed in [night mode](#night-mode).

**boot_logo** (optional, string , only on ESP32): Display a fullscreen logo defined as rgb565 array.

```yaml
Expand Down Expand Up @@ -719,6 +723,8 @@ Numerous features are accessible with services from home assistant and lambdas t
|`hide_rindicator`|none|hides the rindicator|
|`hide_gauge`|none|hides the gauge|
|`hide_alarm`|none|hides the alarm|
|`night_mode_on`|none|turn [night mode](#night-mode) on|
|`night_mode_off`|none|turn [night mode](#night-mode) off|
|`show_gauge"`|"percent", "r", "g", "b"|set the height of the gauge according to the percentage in the given color|
|`show_alarm`|"r", "g", "b", "size"|shows the color with the given size in the upper-right corner|
|`show_rindicator`|"r", "g", "b", "size"|shows the color with the given size in the lower-right corner|
Expand Down Expand Up @@ -757,6 +763,10 @@ Numerous features are accessible with services from home assistant and lambdas t
- **progress**: сan take a value from -100 to 100, the color of the progress bar is calculated automatically, if the progress is in the range `0..100`, then `from red to green`, if in the range `-100..0`, then from `green to red`.
- **value**: the brightness 0..255

### Night mode

When night mode is enabled, only the screens specified in `night_mode_screens` are displayed (**default:** 2, 3, 16) the other screens can be added, deleted, and will follow their life cycle but will not be displayed. Screen numbers in the table [mode](#modes).

### Local lambdas

#### Add screen to your display queue
Expand Down Expand Up @@ -919,9 +929,21 @@ ehmtxv2:

#### on_next_clock

The trigger ```on_next_clock``` is triggered every time a new clock display circle starts.
The trigger ```on_next_clock``` is triggered every time a new clock display circle starts.
See the examples:

#### on_show_display

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

**state** (Display state, bool): value to use in lambda

#### on_night_mode

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:

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

##### Change something for each clock circle

```yaml
Expand Down

0 comments on commit 2db8dfd

Please sign in to comment.