Merge pull request #264 from deejaybeam/dev

upd: instant update of home-buttons
This commit is contained in:
Chris
2023-01-28 15:07:11 +01:00
committed by GitHub

View File

@@ -3649,6 +3649,44 @@ action:
data:
entity_id: 'switch.{{ nspanel_name }}_relay_2_local_fallback'
##### Update home-buttons on automation-reload only #####
- if:
- condition: template
value_template: '{{ states(current_page) == page_home }}'
then:
###### 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 }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt05_pic.pic={{ home_button_blank }}"
###### ENTITIES - Icon ######
- if:
- condition: template
value_template: '{{ entitypages_enabled }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt06_pic.pic={{ home_button_entities }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt05_pic.pic={{ home_button_blank }}"
##### NSPanel boot init only #####
- if: