upd: set boot-infos

This commit is contained in:
Chris
2023-01-24 13:26:37 +01:00
parent 2ac8305eff
commit b1b63b11cd
2 changed files with 8 additions and 0 deletions

View File

@@ -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:

View File

@@ -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