From 7cd83e7df60c237b458770e8c0f32390e4c03f6a Mon Sep 17 00:00:00 2001 From: Blackymas <41958506+Blackymas@users.noreply.github.com> Date: Fri, 7 Oct 2022 22:24:14 +0200 Subject: [PATCH] Update blueprint.yaml --- blueprint.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/blueprint.yaml b/blueprint.yaml index 1fe52a2..2060687 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -557,6 +557,7 @@ variables: date3: "{{ ((as_timestamp(now()) + 259200) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" date4: "{{ ((as_timestamp(now()) + 345600) | timestamp_custom('%a %d.%m' )) | replace('Mon', 'Montag,')| replace('Tue', 'Dienstag,')| replace('Wed', 'Mittwoch,')| replace('Thu', 'Donnerstag,')| replace('Fri', 'Freitag,')| replace('Sat', 'Samstag,')| replace('Sun', 'Sonntag,') }}" + time: "{{ states('sensor.time') }}" ##### Buttons ##### entity01: !input 'entity01' @@ -696,12 +697,12 @@ trigger: entity_id: !input 'outdoortemp' id: outdoortemp_state -##### Date - Trigger ##### +##### Time - Trigger ##### - platform: event event_type: state_changed event_data: - entity_id: 'date0' - id: date0_state + entity_id: sensor.time + id: time_state ##### Button01 Sync - Trigger ##### - platform: state @@ -1412,7 +1413,7 @@ action: - conditions: - condition: trigger id: - - date0_state + - time_state - nspanel_boot sequence: - service: !input command_text_printf @@ -1420,6 +1421,19 @@ action: component: home.a02 message: '{{ date0 }}' +##### Time Home Page ##### + - choose: + - conditions: + - condition: trigger + id: + - time_state + - nspanel_boot + sequence: + - service: !input command_text_printf + data: + component: home.a01 + message: '{{ time }}' + ######################################### # #