change for new currentpage
This commit is contained in:
22
esphome.yaml
22
esphome.yaml
@@ -495,15 +495,15 @@ sensor:
|
||||
- lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global));
|
||||
|
||||
###### Send current page to HA
|
||||
- platform: nextion
|
||||
id: current_page
|
||||
name: "${device_name} Current Page"
|
||||
variable_name: dp
|
||||
update_interval: 1s
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- delta: 1.0
|
||||
- lambda: return int(x);
|
||||
# - platform: nextion
|
||||
# id: current_page
|
||||
# name: "${device_name} Current Page"
|
||||
# variable_name: dp
|
||||
# update_interval: 1s
|
||||
# accuracy_decimals: 0
|
||||
# filters:
|
||||
# - delta: 1.0
|
||||
# - lambda: return int(x);
|
||||
|
||||
|
||||
##### START - TEXT SENSOR CONFIGURATION #####
|
||||
@@ -612,8 +612,8 @@ text_sensor:
|
||||
##### currentpage sensor, the main action variable - push to HA #####
|
||||
- platform: nextion
|
||||
nextion_id: disp1
|
||||
name: ${device_name} current Page New
|
||||
id: disp1_currentpage_new
|
||||
name: ${device_name} currentpage
|
||||
id: disp1_currentpage
|
||||
update_interval: 50ms
|
||||
component_name: currentpage
|
||||
internal: false
|
||||
|
||||
Reference in New Issue
Block a user