QR Code rdy
This commit is contained in:
@@ -233,7 +233,28 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
|
|||||||
description: '* *Depends on your climate device and HA-Integration. If optimisitc mode is **OFF** then changes are made will wait for response from device to update temperature in the display. This can cause delays or jumping values. If **ON** the script update the display immediately but apply changes after closing climate-page* '
|
description: '* *Depends on your climate device and HA-Integration. If optimisitc mode is **OFF** then changes are made will wait for response from device to update temperature in the display. This can cause delays or jumping values. If **ON** the script update the display immediately but apply changes after closing climate-page* '
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
|
qrcode_state:
|
||||||
|
name: Activate QR Code (Optional)
|
||||||
|
default: false
|
||||||
|
description: '* *activate the QR code page and QR Code Button on the home page* '
|
||||||
|
selector:
|
||||||
|
boolean:
|
||||||
|
|
||||||
|
qrcode_label:
|
||||||
|
name: Name "QR Code Page" (Optional)
|
||||||
|
description: '* *Displayed on top of **"QR Code"***'
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
text: {}
|
||||||
|
|
||||||
|
qrcode_value:
|
||||||
|
name: QR Code content (Optional)
|
||||||
|
description: '* *Value you want to display as QR code*'
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
text: {}
|
||||||
|
|
||||||
##### HARDWARE BUTTONS #####
|
##### HARDWARE BUTTONS #####
|
||||||
left_button_entity:
|
left_button_entity:
|
||||||
name: Left Button (Optional)
|
name: Left Button (Optional)
|
||||||
@@ -284,28 +305,28 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
|
|||||||
|
|
||||||
##### BUTTON Page Labels #####
|
##### BUTTON Page Labels #####
|
||||||
button_page01_label:
|
button_page01_label:
|
||||||
name: Name **"Button Page 1"** (Optional)
|
name: Name "Button Page 1" (Optional)
|
||||||
description: '* *Displayed on top of **"Button Page 1"***'
|
description: '* *Displayed on top of **"Button Page 1"***'
|
||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
text: {}
|
text: {}
|
||||||
|
|
||||||
button_page02_label:
|
button_page02_label:
|
||||||
name: Name **"Button Page 2"** (Optional)
|
name: Name "Button Page 2" (Optional)
|
||||||
description: '* *Displayed on top of **"Button Page 2"***'
|
description: '* *Displayed on top of **"Button Page 2"***'
|
||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
text: {}
|
text: {}
|
||||||
|
|
||||||
button_page03_label:
|
button_page03_label:
|
||||||
name: Name **"Button Page 3"** (Optional)
|
name: Name "Button Page 3" (Optional)
|
||||||
description: '* *Displayed on top of **"Button Page 3"***'
|
description: '* *Displayed on top of **"Button Page 3"***'
|
||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
text: {}
|
text: {}
|
||||||
|
|
||||||
button_page04_label:
|
button_page04_label:
|
||||||
name: Name **"Button Page 4"** (Optional)
|
name: Name "Button Page 4" (Optional)
|
||||||
description: '* *Displayed on top of **"Button Page 4"***'
|
description: '* *Displayed on top of **"Button Page 4"***'
|
||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
@@ -1386,6 +1407,9 @@ variables:
|
|||||||
outdoortemp: !input "outdoortemp"
|
outdoortemp: !input "outdoortemp"
|
||||||
indoortemp: !input "indoortemp"
|
indoortemp: !input "indoortemp"
|
||||||
climate: !input "climate"
|
climate: !input "climate"
|
||||||
|
qrcode_label: !input "qrcode_label"
|
||||||
|
qrcode_value: !input "qrcode_value"
|
||||||
|
qrcode_state: !input "qrcode_state"
|
||||||
|
|
||||||
#### HARDWARE BUTTONS #####
|
#### HARDWARE BUTTONS #####
|
||||||
left_button_entity: !input "left_button_entity"
|
left_button_entity: !input "left_button_entity"
|
||||||
@@ -1476,6 +1500,7 @@ variables:
|
|||||||
home_button_blank: "116"
|
home_button_blank: "116"
|
||||||
home_button_notify_white: "117"
|
home_button_notify_white: "117"
|
||||||
home_button_notify_red: "118"
|
home_button_notify_red: "118"
|
||||||
|
home_button_qrcode: "123"
|
||||||
|
|
||||||
###### NEXTION COLOR MAPPING #####
|
###### NEXTION COLOR MAPPING #####
|
||||||
button_color_1: "65535"
|
button_color_1: "65535"
|
||||||
@@ -2224,7 +2249,7 @@ trigger:
|
|||||||
|
|
||||||
#### Show QR code - Trigger ####
|
#### Show QR code - Trigger ####
|
||||||
- platform: template
|
- platform: template
|
||||||
value_template: '{{ states(last_click) is match "homebutton08release" }}'
|
value_template: '{{ states(last_click) is match "homebutton05release" }}'
|
||||||
id: open_qrcode_page
|
id: open_qrcode_page
|
||||||
|
|
||||||
|
|
||||||
@@ -2811,7 +2836,6 @@ action:
|
|||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
cmd: page home
|
cmd: page home
|
||||||
|
|
||||||
|
|
||||||
#### Notification Symbol ####
|
#### Notification Symbol ####
|
||||||
- conditions:
|
- conditions:
|
||||||
@@ -2858,8 +2882,8 @@ action:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: open_qrcode_page
|
id: open_qrcode_page
|
||||||
# - condition: template
|
- condition: template
|
||||||
# value_template: "{{ states(notification_text) |length > 0}} "
|
value_template: '{{ qrcode_state == true }}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: "{{ command_printf }}"
|
- service: "{{ command_printf }}"
|
||||||
data:
|
data:
|
||||||
@@ -4547,6 +4571,17 @@ action:
|
|||||||
data:
|
data:
|
||||||
cmd: "homebt04_pic.pic={{ notify_pic }}"
|
cmd: "homebt04_pic.pic={{ notify_pic }}"
|
||||||
|
|
||||||
|
###### QR Code - Icon ######
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ qrcode_state == true }}'
|
||||||
|
then:
|
||||||
|
- delay:
|
||||||
|
milliseconds: "{{ delay_value }}"
|
||||||
|
- service: "{{ command_printf }}"
|
||||||
|
data:
|
||||||
|
cmd: "homebt05_pic.pic={{ home_button_qrcode }}"
|
||||||
|
|
||||||
###### StatusBar - Icon 04 ######
|
###### StatusBar - Icon 04 ######
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
@@ -5905,9 +5940,22 @@ 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user