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