Hallo bin ein Anfänger was HA angeht.
Nutze da gern Simons Videos.
Hab soweit Home Connect und mein Geschirrspüler in HA integriert.
Verwende zum Start des Geschirrspülers Simon seine Automation die bei mir nicht laufen will.
Angepasste Automation:
alias: Energy - Run Dishwasher at Sun Prime Time
description: ""
trigger:
- platform: state
entity_id:
- input_button.vorwahl_spuhlmaschine_eco
variables:
dishwasher_mode: switch.geschirrspuler_program_eco50
- platform: state
entity_id:
- input_button.vorwahl_spulmaschine_auto
variables:
dishwasher_mode: switch.geschirrspuler_program_auto2
condition: []
action:
- choose:
- conditions:
- condition: template
value_template: >-
{{ as_timestamp(states("sensor.power_highest_peak_time_today")) >=
as_timestamp(now()) }}
sequence:
- service: input_datetime.set_datetime
data:
timestamp: >-
{{ as_timestamp(states('sensor.power_highest_peak_time_today'))
}}
target:
entity_id: input_datetime.nachste_startzeit_spulmaschine
- conditions:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.energy_current_hour
above: 0.3
- condition: numeric_state
entity_id: sensor.energy_next_hour
above: 0.3
- condition: numeric_state
entity_id: sensor.shelly_solar_power
above: 300
sequence:
- service: input_datetime.set_datetime
data:
timestamp: "{{ now().timestamp() }}"
target:
entity_id: input_datetime.nachste_startzeit_spulmaschine
default:
- service: input_datetime.set_datetime
data:
timestamp: >-
{{ as_timestamp(states('sensor.power_highest_peak_time_tomorrow'))
}}
target:
entity_id: input_datetime.nachste_startzeit_spulmaschine
- service: homeassistant.turn_on
data: {}
target:
entity_id: switch.geschirrspuler_power
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- service: home_connect.start_program
metadata: {}
data:
device_id: 131a0f14098dade218fb030be005f9a6
entity_id: "{{ dishwasher_mode }}\""
key: BSH.Common.Option.StartInRelative
value: >-
{{
(as_datetime(states("input_datetime.nachste_startzeit_spulmaschine")).astimezone()
- now()).seconds | int }}
mode: single
Wenn ich die Automation starte bekomme ich folgende Fehlermeldung in den Traces angezeigt:
Ausgeführt: 21. April 2024 um 13:48:04
Fehler: extra keys not allowed @ data['entity_id']
Ergebnis:
params:
domain: home_connect
service: start_program
service_data:
device_id: 131a0f14098dade218fb030be005f9a6
entity_id: switch.geschirrspuler_program_auto2"
key: BSH.Common.Option.StartInRelative
value: 83515
target: {}
running_script: false
Könnt ihr mir bitte bei einer Lösung helfen?`
mfg