Button trigger HomeConnect Dishwasher when conditions match

I have an automation with three conditions that need to be fulfilled. When this happens it should start the dishwasher.

The problem: i want to do that with an external ikea button and the conditions need to be checked till they are valid. How do i do that?

Right now i use a key: “BSH.Common.Option.StartInRelative” but it seems that the dishwasher does not read the proper date out of my date/ time helper. i just need a workaround for that.

Someone with an idea?

service: home_connect.start_program
data:
  device_id: xxxxxxxxx
  program: Dishcare.Dishwasher.Program.Quick65
  key: BSH.Common.Option.StartInRelative
  value: >-
    {{
    (as_datetime(states("input_datetime.nachste_startzeit_spulmaschine")).astimezone()
    -  now()).seconds | int }}