diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 9c5707d..cfd5041 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -4675,7 +4675,15 @@ action: if settings_entity_state is mapping else { "page": "home", "entity": "unknown" } }} - settings_entity_domain: '{{ settings_entity_dict.entity.split(".")[0] if settings_entity_dict.entity is defined and settings_entity_dict.entity is string and settings_entity_dict.entity.split(".") | count > 0 else "unknown" }}' + settings_entity_domain: > + {{ + settings_entity_dict.entity.split(".")[0] + if + settings_entity_dict.entity is defined and + settings_entity_dict.entity is string and + settings_entity_dict.entity.split(".") | count > 0 + else "unknown" + }} - if: '{{ settings_entity_domain in ["light", "cover", "climate"] }}' then: - service: '{{ nextion.commands.printf }}' @@ -5790,7 +5798,7 @@ action: continue_on_error: true ##### LIGHT State ##### - variables: - curr_brightness: '{{ (state_attr(settings_entity_dict, "brightness") | int(0) * 100 / 255) | round(0) }}' + curr_brightness: '{{ (state_attr(settings_entity_dict.entity, "brightness") | int(0) * 100 / 255) | round(0) }}' - *delay-default - service: '{{ nextion.commands.value }}' data: @@ -5812,7 +5820,7 @@ action: ##### LIGHT Check Color_Temp Value is available when yes send some current Values ##### - variables: - curr_color_temp: '{{ state_attr(settings_entity_dict, "color_temp") }}' + curr_color_temp: '{{ state_attr(settings_entity_dict.entity, "color_temp") }}' - condition: '{{ is_number(curr_color_temp) }}' - *delay-default - service: '{{ nextion.commands.text_printf }}'