From c2ff9cd2f29a44383ad48965349e828648c39488 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 3 May 2026 22:16:56 +0000 Subject: [PATCH] fix(blueprints): fix home_connect_alt service call and correct sensor description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two fixes in all 4 home_connect_alt blueprints: 1. home_connect_alt.start_program uses its own `device_id` field (not HA's standard target mechanism) and `program_key` (not `program`). The previous `target: entity_id:` was silently ignored, causing the service call to fail due to missing required `device_id`. Fixed by: - Removing `target: entity_id:` block - Adding `data.device_id: "{{ device_id(program_entity) }}"` - Renaming `program:` to `program_key:` - Adding `| int` filter to numeric option values 2. Same remote_start_sensor description fix as the non-alt variants (RemoteControlActive → RemoteControlStartAllowed). Also reset blueprint version from v2.0.0 to v1.0.0. Release-Notes: skip Released-Bug: no --- .../dishwasher_home_connect_alt.yaml | 16 ++++++------- .../tibber_prices/dryer_home_connect_alt.yaml | 16 ++++++------- ...laundry_day_pipeline_home_connect_alt.yaml | 24 +++++++++---------- .../washing_machine_home_connect_alt.yaml | 16 ++++++------- 4 files changed, 35 insertions(+), 37 deletions(-) diff --git a/custom_components/tibber_prices/blueprints/automation/tibber_prices/dishwasher_home_connect_alt.yaml b/custom_components/tibber_prices/blueprints/automation/tibber_prices/dishwasher_home_connect_alt.yaml index 019cf35..9b26f47 100644 --- a/custom_components/tibber_prices/blueprints/automation/tibber_prices/dishwasher_home_connect_alt.yaml +++ b/custom_components/tibber_prices/blueprints/automation/tibber_prices/dishwasher_home_connect_alt.yaml @@ -3,7 +3,7 @@ blueprint: description: > **Companion blueprint for [Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration) - (HACS integration)** · Blueprint v2.0.0 + (HACS integration)** · Blueprint v1.0.0 **Device-driven** dishwasher automation with electricity price optimization using **Home Connect Alt** @@ -76,10 +76,10 @@ blueprint: domain: binary_sensor device_class: door remote_start_sensor: - name: Remote Control Sensor + name: Remote Start Sensor description: > - The "Remote Control Active" binary sensor - (e.g., `binary_sensor.dishwasher_remote_control_active`). + The "Remote Control Start Allowed" binary sensor + (e.g., `binary_sensor.dishwasher_bsh_common_status_remotecontrolstartallowed`). Must be **on** for the automation to proceed. selector: entity: @@ -448,15 +448,15 @@ actions: # Dishwashers use StartInRelative (seconds until program starts) start_in_relative: > {{ [0, ((_window_start - now()).total_seconds()) | int] | max }} + _device_id: "{{ device_id(program_entity) }}" - action: home_connect_alt.start_program - target: - entity_id: "{{ program_entity }}" data: - program: "{{ selected_program }}" + device_id: "{{ _device_id }}" + program_key: "{{ selected_program }}" options: - key: BSH.Common.Option.StartInRelative - value: "{{ start_in_relative }}" + value: "{{ start_in_relative | int }}" - variables: _n_title: "{{ title_planned }}" diff --git a/custom_components/tibber_prices/blueprints/automation/tibber_prices/dryer_home_connect_alt.yaml b/custom_components/tibber_prices/blueprints/automation/tibber_prices/dryer_home_connect_alt.yaml index 29e77df..44e6629 100644 --- a/custom_components/tibber_prices/blueprints/automation/tibber_prices/dryer_home_connect_alt.yaml +++ b/custom_components/tibber_prices/blueprints/automation/tibber_prices/dryer_home_connect_alt.yaml @@ -3,7 +3,7 @@ blueprint: description: > **Companion blueprint for [Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration) - (HACS integration)** · Blueprint v2.0.0 + (HACS integration)** · Blueprint v1.0.0 **Device-driven** dryer automation with electricity price optimization using **Home Connect Alt** @@ -85,10 +85,10 @@ blueprint: domain: binary_sensor device_class: door remote_start_sensor: - name: Remote Control Sensor + name: Remote Start Sensor description: > - The "Remote Control Active" binary sensor - (e.g., `binary_sensor.dryer_remote_control_active`). + The "Remote Control Start Allowed" binary sensor + (e.g., `binary_sensor.dryer_bsh_common_status_remotecontrolstartallowed`). Must be **on** for the automation to proceed. selector: entity: @@ -451,15 +451,15 @@ actions: {% set window_end = _window_start + timedelta(minutes=duration | int) %} {% set seconds_until_end = ((window_end - now()).total_seconds()) | int %} {{ [duration | int * 60, seconds_until_end] | max }} + _device_id: "{{ device_id(program_entity) }}" - action: home_connect_alt.start_program - target: - entity_id: "{{ program_entity }}" data: - program: "{{ selected_program }}" + device_id: "{{ _device_id }}" + program_key: "{{ selected_program }}" options: - key: BSH.Common.Option.FinishInRelative - value: "{{ finish_in_relative }}" + value: "{{ finish_in_relative | int }}" - variables: _n_title: "{{ title_planned }}" diff --git a/custom_components/tibber_prices/blueprints/automation/tibber_prices/laundry_day_pipeline_home_connect_alt.yaml b/custom_components/tibber_prices/blueprints/automation/tibber_prices/laundry_day_pipeline_home_connect_alt.yaml index 6136c37..09ee018 100644 --- a/custom_components/tibber_prices/blueprints/automation/tibber_prices/laundry_day_pipeline_home_connect_alt.yaml +++ b/custom_components/tibber_prices/blueprints/automation/tibber_prices/laundry_day_pipeline_home_connect_alt.yaml @@ -3,7 +3,7 @@ blueprint: description: > **Companion blueprint for [Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration) - (HACS integration)** · Blueprint v2.0.0 + (HACS integration)** · Blueprint v1.0.0 **Device-driven** laundry pipeline — schedule multiple wash + dry cycles at the cheapest electricity prices using **Home Connect Alt** @@ -93,9 +93,9 @@ blueprint: domain: binary_sensor device_class: door washer_remote_start_sensor: - name: Remote Control Sensor + name: Remote Start Sensor description: > - The "Remote Control Active" binary sensor. + The "Remote Control Start Allowed" binary sensor. selector: entity: filter: @@ -162,9 +162,9 @@ blueprint: domain: binary_sensor device_class: door dryer_remote_start_sensor: - name: Remote Control Sensor + name: Remote Start Sensor description: > - The "Remote Control Active" binary sensor of the dryer. + The "Remote Control Start Allowed" binary sensor of the dryer. Only used when "Include Dryer" is enabled. default: "" selector: @@ -730,13 +730,12 @@ actions: {{ [washer_duration | int * 60, seconds_until_end] | max }} - action: home_connect_alt.start_program - target: - entity_id: "{{ washer_program_entity }}" data: - program: "{{ washer_program }}" + device_id: "{{ device_id(washer_program_entity) }}" + program_key: "{{ washer_program }}" options: - key: BSH.Common.Option.FinishInRelative - value: "{{ wash_finish_in_relative }}" + value: "{{ wash_finish_in_relative | int }}" - variables: _n_title: > @@ -1055,13 +1054,12 @@ actions: {{ [dryer_duration | int * 60, seconds_until_end] | max }} - action: home_connect_alt.start_program - target: - entity_id: "{{ dryer_program_entity }}" data: - program: "{{ dryer_program }}" + device_id: "{{ device_id(dryer_program_entity) }}" + program_key: "{{ dryer_program }}" options: - key: BSH.Common.Option.FinishInRelative - value: "{{ dry_finish_in_relative }}" + value: "{{ dry_finish_in_relative | int }}" - variables: _n_title: > diff --git a/custom_components/tibber_prices/blueprints/automation/tibber_prices/washing_machine_home_connect_alt.yaml b/custom_components/tibber_prices/blueprints/automation/tibber_prices/washing_machine_home_connect_alt.yaml index f9217eb..cea7eba 100644 --- a/custom_components/tibber_prices/blueprints/automation/tibber_prices/washing_machine_home_connect_alt.yaml +++ b/custom_components/tibber_prices/blueprints/automation/tibber_prices/washing_machine_home_connect_alt.yaml @@ -3,7 +3,7 @@ blueprint: description: > **Companion blueprint for [Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration) - (HACS integration)** · Blueprint v2.0.0 + (HACS integration)** · Blueprint v1.0.0 **Device-driven** washing machine automation with electricity price optimization using **Home Connect Alt** @@ -85,10 +85,10 @@ blueprint: domain: binary_sensor device_class: door remote_start_sensor: - name: Remote Control Sensor + name: Remote Start Sensor description: > - The "Remote Control Active" binary sensor - (e.g., `binary_sensor.washer_remote_control_active`). + The "Remote Control Start Allowed" binary sensor + (e.g., `binary_sensor.washer_bsh_common_status_remotecontrolstartallowed`). Must be **on** for the automation to proceed. selector: entity: @@ -453,15 +453,15 @@ actions: {% set window_end = _window_start + timedelta(minutes=duration | int) %} {% set seconds_until_end = ((window_end - now()).total_seconds()) | int %} {{ [duration | int * 60, seconds_until_end] | max }} + _device_id: "{{ device_id(program_entity) }}" - action: home_connect_alt.start_program - target: - entity_id: "{{ program_entity }}" data: - program: "{{ selected_program }}" + device_id: "{{ _device_id }}" + program_key: "{{ selected_program }}" options: - key: BSH.Common.Option.FinishInRelative - value: "{{ finish_in_relative }}" + value: "{{ finish_in_relative | int }}" - variables: _n_title: "{{ title_planned }}"