From c195601b61ac29ad6aa8becb6bd2962435f96f47 Mon Sep 17 00:00:00 2001 From: Blackymas Date: Tue, 8 Nov 2022 23:32:17 +0100 Subject: [PATCH] esphome rdy for climate --- blueprint.yaml | 5 +++-- esphome.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blueprint.yaml b/blueprint.yaml index bd3b984..327b94b 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -732,6 +732,7 @@ trigger_variables: right_button: "binary_sensor.{{ nspanel_name_trigger }}_right_button" weather_forcast_button: "binary_sensor.{{ nspanel_name_trigger }}_weather_forcast" nextion_inited_trigger: "switch.{{ nspanel_name_trigger }}_nextion_inited" + current_page: "sensor.{{ nspanel_name_trigger }}_current_page" variables: ##### GENERAL ##### @@ -1094,7 +1095,7 @@ trigger: - platform: event event_type: state_changed event_data: - entity_id: "{{ last_click_weathersettings }}" + entity_id: "{{ current_page }}" id: weather_settings ##### Page Button - Trigger "button_page" Entity sync ##### @@ -2937,7 +2938,7 @@ action: ##### Weather Page - 01 - HA DEFAULT ##### - conditions: - condition: template - value_template: '{{ states(last_click_weathersettings) == "weather01" }}' + value_template: '{{ current_page == "1" }}' sequence: - variables: # weather PIC diff --git a/esphome.yaml b/esphome.yaml index 652a44a..baaef5b 100644 --- a/esphome.yaml +++ b/esphome.yaml @@ -834,7 +834,7 @@ text_sensor: ##### last click climate page, the main action variable - push to HA ##### - platform: nextion nextion_id: disp1 - name: ${device_name} last click weathersettings + name: ${device_name} last click climatesettings id: disp1_lastclick_climatesettings update_interval: 50ms component_name: weathersetting