upd: change qr-code-call
This commit is contained in:
@@ -2884,10 +2884,26 @@ action:
|
||||
id: open_qrcode_page
|
||||
- condition: template
|
||||
value_template: '{{ qrcode_state == true }}'
|
||||
- condition: template
|
||||
value_template: '{{ qrcode_value |length > 0 }}'
|
||||
sequence:
|
||||
- service: "{{ command_printf }}"
|
||||
data:
|
||||
cmd: "page {{ page_qrcode }}"
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ qrcode_label |length > 0 }}'
|
||||
then:
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "qrcode_label"
|
||||
message: "{{ qrcode_label }}"
|
||||
- delay:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "qrcode_value"
|
||||
message: "{{ qrcode_value }}"
|
||||
|
||||
##### Button Notification clear #####
|
||||
- conditions:
|
||||
@@ -5940,22 +5956,6 @@ action:
|
||||
## PAGE QR Code ##
|
||||
- conditions: '{{ trigger.event.data.new_state.state == page_qrcode }}'
|
||||
sequence:
|
||||
##### QR Code Page Label #####
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ qrcode_label |length > 0 }}'
|
||||
then:
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "qrcode_label"
|
||||
message: "{{ qrcode_label }}"
|
||||
- delay:
|
||||
milliseconds: "{{ delay_value }}"
|
||||
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "qrcode_value"
|
||||
message: "{{ qrcode_value }}"
|
||||
|
||||
##### Open Climate Settings #####
|
||||
- conditions:
|
||||
|
||||
@@ -246,6 +246,7 @@ api:
|
||||
- wait_until:
|
||||
switch.is_on: nextion_init
|
||||
- lambda: |-
|
||||
id(disp1).send_command_printf("page qrcode");
|
||||
id(disp1).set_component_text_printf("qrcode.qrcode_value", "%s", qrdata.c_str());
|
||||
|
||||
#### Service to send thermostat cycle state ####
|
||||
|
||||
Reference in New Issue
Block a user