File tree Expand file tree Collapse file tree 1 file changed +4
-34
lines changed
content/components/display Expand file tree Collapse file tree 1 file changed +4
-34
lines changed Original file line number Diff line number Diff line change @@ -313,40 +313,10 @@ The three key settings for LVGL are:
313313This action allows you to dynamically change the brightness of the display at runtime.
314314
315315` ` ` yaml
316- # Example: Control brightness with a template number
317- number:
318- - platform: template
319- name: "Display Brightness"
320- id: brightness
321- icon: "mdi:brightness-6"
322- min_value: 1
323- max_value: 255
324- step: 1
325- optimistic: true
326- restore_value: true
327- initial_value: 128
328- on_value:
329- then:
330- - hub75.set_brightness:
331- id: matrix_display
332- brightness: !lambda return x;
333-
334- # Example: Turn display off/on by setting brightness
335- switch:
336- - platform: template
337- name: "Display Power"
338- id: display_power
339- icon: "mdi:power"
340- restore_mode: RESTORE_DEFAULT_ON
341- optimistic: true
342- turn_on_action:
343- - hub75.set_brightness:
344- id: matrix_display
345- brightness: 128
346- turn_off_action:
347- - hub75.set_brightness:
348- id: matrix_display
349- brightness: 0
316+ on_...:
317+ - hub75.set_brightness:
318+ id: matrix_display
319+ brightness: 128
350320` ` `
351321
352322**Configuration variables:**
You can’t perform that action at this time.
0 commit comments