Use actionable notification to start Roborock


Using the below automation, i’m trying to get an actionable notification reminder to start the vacuum cleaner. However, the notification pops up, but nothing is happening pushing the button on the phone.
I think it has to do with the condition, but can’t seem to find why, since a small similar script does work (and executioning the script manually does also start the cleaner).

alias: "Algemeen: Roborock na 3 dagen"
description: ""
  - platform: numeric_state
    entity_id: sensor.roborock_vacuum_a15_last_clean
    above: "25"
condition: []
  - service: notify.mobile_app_iphone_k
      title: Het is alweer 3 dagen geleden!
      message: Wil je de robot laten stofzuigen?
          - action: DO_CLEAN
            title: Ja
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
          action: DO_CLEAN
    continue_on_timeout: false
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ == DO_CLEAN }}"
          - device_id: faf3290e0c6538eb05218638edbc89e6
            domain: vacuum
            entity_id: vacuum.roborock_vacuum_a15
            type: clean
          - service: notify.mobile_app_iphone_k
              message: Roborock gaat zuigen!
    default: []
mode: single

Also, in terms of keeping my sensors and triggers simple. I now created a template in the config to create a sensor stating the seconds since the vacuum cleaned. But there is already a sensor with the Last vacuum datetime, which is 2022-08-17T11:27:28+00:00

How can I utilize this in the automation to get the automation to trigger after 3 days without a separate sensor with the seconds?

Does anyone have a suggestion to point me in the right direction?

Regarding your 2nd question, you can use the value_tremplate to check if
today - last_clean_date >= 3 then clean.

I use the same sensor as condition to start automation on my vacuum “suksis”. I am checking if last clean date is today, then the automation doesn’t run cuz it means somebody already ran the vacuum manually during the day.

  - condition: template
    value_template: >-
      {{ not as_timestamp(states('sensor.suksis_last_clean_end')) | timestamp_custom('%d') == as_timestamp(now()) | timestamp_custom('%d')}}