upd: set boot-infos
This commit is contained in:
@@ -1383,6 +1383,7 @@ trigger_variables:
|
||||
|
||||
variables:
|
||||
##### GENERAL #####
|
||||
blueprint_version: "3.1.0"
|
||||
nspanel_name: !input "nspanel_name"
|
||||
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
|
||||
language: !input "language"
|
||||
@@ -2612,6 +2613,10 @@ action:
|
||||
##### NSPanel boot init start #####
|
||||
- delay:
|
||||
milliseconds: 100
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: boot.bluep_version
|
||||
message: "{{ blueprint_version }}"
|
||||
|
||||
##### NSPanel boot init buttons #####
|
||||
- delay:
|
||||
|
||||
@@ -529,6 +529,7 @@ text_sensor:
|
||||
ip_address:
|
||||
name: ${device_name} IP
|
||||
disabled_by_default: true
|
||||
id: ip_address
|
||||
ssid:
|
||||
name: ${device_name} SSID
|
||||
disabled_by_default: true
|
||||
@@ -833,8 +834,10 @@ display:
|
||||
on_setup:
|
||||
then:
|
||||
- lambda: id(disp1).send_command_printf("page 8");
|
||||
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.1.0"); ### esphome-version ###
|
||||
- wait_until:
|
||||
api.connected
|
||||
- lambda: id(disp1).set_component_text_printf("boot.ip_addr", "%s", id(ip_address).state.c_str());
|
||||
- delay: 0.5s
|
||||
- number.set:
|
||||
id: display_brightness
|
||||
|
||||
Reference in New Issue
Block a user