diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 703d34d..eadc9f0 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -975,7 +975,6 @@ binary_sensor: on_click: - 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 ##### - name: ${device_name} Nextion display id: nextion_init @@ -1523,9 +1522,9 @@ switch: number: ##### SCREEN BRIGHTNESS ##### - - platform: template - name: ${device_name} Display Brightness + - name: ${device_name} Display Brightness id: display_brightness + platform: template entity_category: config unit_of_measurement: '%' 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)); ##### SCREEN BRIGHTNESS DIMMED DOWN ##### - - platform: template - name: ${device_name} Display Brightness Dimdown + - name: ${device_name} Display Brightness Dimdown id: display_dim_brightness + platform: template entity_category: config unit_of_measurement: '%' min_value: 1