diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 3e85c9c..ce24270 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -7529,7 +7529,7 @@ action: - service: '{{ nextion.command.value }}' data: component: confirm - message: '{{ confirm_value }}' + value: '{{ confirm_value }}' continue_on_error: true ###### Display page while other elements are still loading ##### - variables: @@ -7722,7 +7722,7 @@ action: - service: '{{ nextion.command.value }}' data: component: light.lightslider - message: '{{ curr_brightness }}' + value: '{{ curr_brightness }}' continue_on_error: true - *delay-default - service: '{{ nextion.command.text_printf }}' @@ -7768,7 +7768,7 @@ action: - service: '{{ nextion.command.value }}' data: component: light.tempslider - message: '{{ curr_color_temp }}' + value: '{{ curr_color_temp }}' continue_on_error: true - *delay-default - service: '{{ nextion.command.printf }}' @@ -7820,7 +7820,7 @@ action: - service: '{{ nextion.command.value }}' data: component: cover.coverslider - message: '{{ (state_attr(cover_entity, "current_position") | int ) | round(0) }}' + value: '{{ (state_attr(cover_entity, "current_position") | int ) | round(0) }}' continue_on_error: true - *delay-default - service: '{{ nextion.command.text_printf }}' @@ -7905,7 +7905,7 @@ action: - service: '{{ nextion.command.value }}' data: component: fanslider - message: '{{ ((fan.percentage / 100) * fan.steps) | round(0) | int(0) }}' + value: '{{ ((fan.percentage / 100) * fan.steps) | round(0) | int(0) }}' continue_on_error: true - *delay-default - service: '{{ nextion.command.printf }}' diff --git a/nspanel_esphome_core.yaml b/nspanel_esphome_core.yaml index dcd00f7..6767302 100644 --- a/nspanel_esphome_core.yaml +++ b/nspanel_esphome_core.yaml @@ -348,9 +348,9 @@ api: - service: send_command_value variables: component: string - message: int + value: int then: - - lambda: 'disp1->set_component_value(component.c_str(), message);' + - lambda: 'disp1->set_component_value(component.c_str(), value);' ##### Service to send a command "hide componente" directly to the display ##### - service: send_command_hide ### unused ###