Code clean-up
This commit is contained in:
@@ -975,7 +975,6 @@ binary_sensor:
|
|||||||
on_click:
|
on_click:
|
||||||
- button.press: restart_nspanel
|
- button.press: restart_nspanel
|
||||||
|
|
||||||
##### global variable to keep track on whether the Nextion display is ready or not.
|
|
||||||
## Delays initial info from HA to the display #####
|
## Delays initial info from HA to the display #####
|
||||||
- name: ${device_name} Nextion display
|
- name: ${device_name} Nextion display
|
||||||
id: nextion_init
|
id: nextion_init
|
||||||
@@ -1523,9 +1522,9 @@ switch:
|
|||||||
number:
|
number:
|
||||||
|
|
||||||
##### SCREEN BRIGHTNESS #####
|
##### SCREEN BRIGHTNESS #####
|
||||||
- platform: template
|
- name: ${device_name} Display Brightness
|
||||||
name: ${device_name} Display Brightness
|
|
||||||
id: display_brightness
|
id: display_brightness
|
||||||
|
platform: template
|
||||||
entity_category: config
|
entity_category: config
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
min_value: 1
|
min_value: 1
|
||||||
@@ -1543,9 +1542,9 @@ number:
|
|||||||
if (id(current_page).state == "settings") id(disp1).set_component_text_printf("bright_text", "%i%%", int(x));
|
if (id(current_page).state == "settings") id(disp1).set_component_text_printf("bright_text", "%i%%", int(x));
|
||||||
|
|
||||||
##### SCREEN BRIGHTNESS DIMMED DOWN #####
|
##### SCREEN BRIGHTNESS DIMMED DOWN #####
|
||||||
- platform: template
|
- name: ${device_name} Display Brightness Dimdown
|
||||||
name: ${device_name} Display Brightness Dimdown
|
|
||||||
id: display_dim_brightness
|
id: display_dim_brightness
|
||||||
|
platform: template
|
||||||
entity_category: config
|
entity_category: config
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
min_value: 1
|
min_value: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user