mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
fix(blueprints): fix home_connect_alt service call and correct sensor description
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
This commit is contained in:
parent
95d0278241
commit
c2ff9cd2f2
4 changed files with 35 additions and 37 deletions
|
|
@ -3,7 +3,7 @@ blueprint:
|
||||||
description: >
|
description: >
|
||||||
**Companion blueprint for
|
**Companion blueprint for
|
||||||
[Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration)
|
[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
|
**Device-driven** dishwasher automation with electricity price
|
||||||
optimization using **Home Connect Alt**
|
optimization using **Home Connect Alt**
|
||||||
|
|
@ -76,10 +76,10 @@ blueprint:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class: door
|
device_class: door
|
||||||
remote_start_sensor:
|
remote_start_sensor:
|
||||||
name: Remote Control Sensor
|
name: Remote Start Sensor
|
||||||
description: >
|
description: >
|
||||||
The "Remote Control Active" binary sensor
|
The "Remote Control Start Allowed" binary sensor
|
||||||
(e.g., `binary_sensor.dishwasher_remote_control_active`).
|
(e.g., `binary_sensor.dishwasher_bsh_common_status_remotecontrolstartallowed`).
|
||||||
Must be **on** for the automation to proceed.
|
Must be **on** for the automation to proceed.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
|
|
@ -448,15 +448,15 @@ actions:
|
||||||
# Dishwashers use StartInRelative (seconds until program starts)
|
# Dishwashers use StartInRelative (seconds until program starts)
|
||||||
start_in_relative: >
|
start_in_relative: >
|
||||||
{{ [0, ((_window_start - now()).total_seconds()) | int] | max }}
|
{{ [0, ((_window_start - now()).total_seconds()) | int] | max }}
|
||||||
|
_device_id: "{{ device_id(program_entity) }}"
|
||||||
|
|
||||||
- action: home_connect_alt.start_program
|
- action: home_connect_alt.start_program
|
||||||
target:
|
|
||||||
entity_id: "{{ program_entity }}"
|
|
||||||
data:
|
data:
|
||||||
program: "{{ selected_program }}"
|
device_id: "{{ _device_id }}"
|
||||||
|
program_key: "{{ selected_program }}"
|
||||||
options:
|
options:
|
||||||
- key: BSH.Common.Option.StartInRelative
|
- key: BSH.Common.Option.StartInRelative
|
||||||
value: "{{ start_in_relative }}"
|
value: "{{ start_in_relative | int }}"
|
||||||
|
|
||||||
- variables:
|
- variables:
|
||||||
_n_title: "{{ title_planned }}"
|
_n_title: "{{ title_planned }}"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ blueprint:
|
||||||
description: >
|
description: >
|
||||||
**Companion blueprint for
|
**Companion blueprint for
|
||||||
[Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration)
|
[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
|
**Device-driven** dryer automation with electricity price
|
||||||
optimization using **Home Connect Alt**
|
optimization using **Home Connect Alt**
|
||||||
|
|
@ -85,10 +85,10 @@ blueprint:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class: door
|
device_class: door
|
||||||
remote_start_sensor:
|
remote_start_sensor:
|
||||||
name: Remote Control Sensor
|
name: Remote Start Sensor
|
||||||
description: >
|
description: >
|
||||||
The "Remote Control Active" binary sensor
|
The "Remote Control Start Allowed" binary sensor
|
||||||
(e.g., `binary_sensor.dryer_remote_control_active`).
|
(e.g., `binary_sensor.dryer_bsh_common_status_remotecontrolstartallowed`).
|
||||||
Must be **on** for the automation to proceed.
|
Must be **on** for the automation to proceed.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
|
|
@ -451,15 +451,15 @@ actions:
|
||||||
{% set window_end = _window_start + timedelta(minutes=duration | int) %}
|
{% set window_end = _window_start + timedelta(minutes=duration | int) %}
|
||||||
{% set seconds_until_end = ((window_end - now()).total_seconds()) | int %}
|
{% set seconds_until_end = ((window_end - now()).total_seconds()) | int %}
|
||||||
{{ [duration | int * 60, seconds_until_end] | max }}
|
{{ [duration | int * 60, seconds_until_end] | max }}
|
||||||
|
_device_id: "{{ device_id(program_entity) }}"
|
||||||
|
|
||||||
- action: home_connect_alt.start_program
|
- action: home_connect_alt.start_program
|
||||||
target:
|
|
||||||
entity_id: "{{ program_entity }}"
|
|
||||||
data:
|
data:
|
||||||
program: "{{ selected_program }}"
|
device_id: "{{ _device_id }}"
|
||||||
|
program_key: "{{ selected_program }}"
|
||||||
options:
|
options:
|
||||||
- key: BSH.Common.Option.FinishInRelative
|
- key: BSH.Common.Option.FinishInRelative
|
||||||
value: "{{ finish_in_relative }}"
|
value: "{{ finish_in_relative | int }}"
|
||||||
|
|
||||||
- variables:
|
- variables:
|
||||||
_n_title: "{{ title_planned }}"
|
_n_title: "{{ title_planned }}"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ blueprint:
|
||||||
description: >
|
description: >
|
||||||
**Companion blueprint for
|
**Companion blueprint for
|
||||||
[Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration)
|
[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
|
**Device-driven** laundry pipeline — schedule multiple wash + dry
|
||||||
cycles at the cheapest electricity prices using **Home Connect Alt**
|
cycles at the cheapest electricity prices using **Home Connect Alt**
|
||||||
|
|
@ -93,9 +93,9 @@ blueprint:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class: door
|
device_class: door
|
||||||
washer_remote_start_sensor:
|
washer_remote_start_sensor:
|
||||||
name: Remote Control Sensor
|
name: Remote Start Sensor
|
||||||
description: >
|
description: >
|
||||||
The "Remote Control Active" binary sensor.
|
The "Remote Control Start Allowed" binary sensor.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
filter:
|
filter:
|
||||||
|
|
@ -162,9 +162,9 @@ blueprint:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class: door
|
device_class: door
|
||||||
dryer_remote_start_sensor:
|
dryer_remote_start_sensor:
|
||||||
name: Remote Control Sensor
|
name: Remote Start Sensor
|
||||||
description: >
|
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.
|
Only used when "Include Dryer" is enabled.
|
||||||
default: ""
|
default: ""
|
||||||
selector:
|
selector:
|
||||||
|
|
@ -730,13 +730,12 @@ actions:
|
||||||
{{ [washer_duration | int * 60, seconds_until_end] | max }}
|
{{ [washer_duration | int * 60, seconds_until_end] | max }}
|
||||||
|
|
||||||
- action: home_connect_alt.start_program
|
- action: home_connect_alt.start_program
|
||||||
target:
|
|
||||||
entity_id: "{{ washer_program_entity }}"
|
|
||||||
data:
|
data:
|
||||||
program: "{{ washer_program }}"
|
device_id: "{{ device_id(washer_program_entity) }}"
|
||||||
|
program_key: "{{ washer_program }}"
|
||||||
options:
|
options:
|
||||||
- key: BSH.Common.Option.FinishInRelative
|
- key: BSH.Common.Option.FinishInRelative
|
||||||
value: "{{ wash_finish_in_relative }}"
|
value: "{{ wash_finish_in_relative | int }}"
|
||||||
|
|
||||||
- variables:
|
- variables:
|
||||||
_n_title: >
|
_n_title: >
|
||||||
|
|
@ -1055,13 +1054,12 @@ actions:
|
||||||
{{ [dryer_duration | int * 60, seconds_until_end] | max }}
|
{{ [dryer_duration | int * 60, seconds_until_end] | max }}
|
||||||
|
|
||||||
- action: home_connect_alt.start_program
|
- action: home_connect_alt.start_program
|
||||||
target:
|
|
||||||
entity_id: "{{ dryer_program_entity }}"
|
|
||||||
data:
|
data:
|
||||||
program: "{{ dryer_program }}"
|
device_id: "{{ device_id(dryer_program_entity) }}"
|
||||||
|
program_key: "{{ dryer_program }}"
|
||||||
options:
|
options:
|
||||||
- key: BSH.Common.Option.FinishInRelative
|
- key: BSH.Common.Option.FinishInRelative
|
||||||
value: "{{ dry_finish_in_relative }}"
|
value: "{{ dry_finish_in_relative | int }}"
|
||||||
|
|
||||||
- variables:
|
- variables:
|
||||||
_n_title: >
|
_n_title: >
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ blueprint:
|
||||||
description: >
|
description: >
|
||||||
**Companion blueprint for
|
**Companion blueprint for
|
||||||
[Tibber Prices](https://my.home-assistant.io/redirect/hacs_repository/?owner=jpawlowski&repository=hass.tibber_prices&category=integration)
|
[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
|
**Device-driven** washing machine automation with electricity price
|
||||||
optimization using **Home Connect Alt**
|
optimization using **Home Connect Alt**
|
||||||
|
|
@ -85,10 +85,10 @@ blueprint:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
device_class: door
|
device_class: door
|
||||||
remote_start_sensor:
|
remote_start_sensor:
|
||||||
name: Remote Control Sensor
|
name: Remote Start Sensor
|
||||||
description: >
|
description: >
|
||||||
The "Remote Control Active" binary sensor
|
The "Remote Control Start Allowed" binary sensor
|
||||||
(e.g., `binary_sensor.washer_remote_control_active`).
|
(e.g., `binary_sensor.washer_bsh_common_status_remotecontrolstartallowed`).
|
||||||
Must be **on** for the automation to proceed.
|
Must be **on** for the automation to proceed.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
|
|
@ -453,15 +453,15 @@ actions:
|
||||||
{% set window_end = _window_start + timedelta(minutes=duration | int) %}
|
{% set window_end = _window_start + timedelta(minutes=duration | int) %}
|
||||||
{% set seconds_until_end = ((window_end - now()).total_seconds()) | int %}
|
{% set seconds_until_end = ((window_end - now()).total_seconds()) | int %}
|
||||||
{{ [duration | int * 60, seconds_until_end] | max }}
|
{{ [duration | int * 60, seconds_until_end] | max }}
|
||||||
|
_device_id: "{{ device_id(program_entity) }}"
|
||||||
|
|
||||||
- action: home_connect_alt.start_program
|
- action: home_connect_alt.start_program
|
||||||
target:
|
|
||||||
entity_id: "{{ program_entity }}"
|
|
||||||
data:
|
data:
|
||||||
program: "{{ selected_program }}"
|
device_id: "{{ _device_id }}"
|
||||||
|
program_key: "{{ selected_program }}"
|
||||||
options:
|
options:
|
||||||
- key: BSH.Common.Option.FinishInRelative
|
- key: BSH.Common.Option.FinishInRelative
|
||||||
value: "{{ finish_in_relative }}"
|
value: "{{ finish_in_relative | int }}"
|
||||||
|
|
||||||
- variables:
|
- variables:
|
||||||
_n_title: "{{ title_planned }}"
|
_n_title: "{{ title_planned }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue