Roborock Automation läuft nicht durch

Hallo

Ich hab mir eine Automation gebastelt die ziemlich der von Simon in seinem Video entspricht. (Saugen → andocken —> wischen)

leider bricht die Automation bei mir immer nach dem Saugen ab und startet den zweiten Zyklus nicht. Ich kann den Fehler , auch nach abgleich mit Simons Code nicht finden. Evtl. ist wisst ihr ja weiter. :slight_smile:

alias: VAC - Küche intensiv
description: ""
trigger: []
condition: []
action:
  - service: vacuum.send_command
    data:
      command: set_water_box_custom_mode
      params: 202
    target:
      entity_id: vacuum.robi
    alias: Kein Mop
  - service: vacuum.send_command
    data:
      command: set_custom_mode
      params: 104
    target:
      entity_id: vacuum.robi
    alias: Vac Mode Max
  - service: vacuum.send_command
    data:
      command: app_zoned_clean
      params:
        - - 17540
          - 20306
          - 23720
          - 25327
          - 1
    target:
      entity_id: vacuum.robi
    alias: Fahr 1x Küche
  - wait_for_trigger:
      - platform: state
        entity_id:
          - vacuum.robi
        to: docked
        for:
          hours: 0
          minutes: 2
          seconds: 0
    timeout:
      hours: 0
      minutes: 20
      seconds: 0
      milliseconds: 0
    continue_on_timeout: false
  - service: vacuum.send_command
    data:
      command: set_custom_mode
      params: 101
    target:
      entity_id: vacuum.robi
    alias: Vac Mode aus
  - service: vacuum.send_command
    data:
      command: set_water_box_custom_mode
      params: 203
    target:
      entity_id: vacuum.robi
    alias: Mop Mode "max"
  - service: vacuum.send_command
    data:
      command: set_mop_mode
      params: 303
    target:
      entity_id: vacuum.robi
    alias: Mop Route "Deep+"
  - service: vacuum.send_command
    data:
      command: app_zoned_clean
      params:
        - - 17540
          - 20306
          - 23720
          - 25327
          - 2
    target:
      entity_id: vacuum.robi
    alias: Fahr 2x Küche
mode: single
````````````

Ich sehe da jetzt nichts falsches.
Hast Du Dir mal den Trace der Automation angeschaut?
Ist oft hilfreich da man dort sieht wo/wie die Automation reagiert.

1 „Gefällt mir“

Die künstliche Intelligenz antwortet folgendes:

Basierend auf Ihrer Beschreibung und dem bereitgestellten Automations-Code scheint das Problem darin zu liegen, dass die Automation nach dem Saugen abbricht und den zweiten Zyklus (Wischen) nicht startet. Hier sind einige mögliche Gründe und Lösungsvorschläge:

  1. Wait for trigger Timeout:
    Der “wait_for_trigger” Schritt hat einen Timeout von 20 Minuten. Wenn der Staubsauger nicht innerhalb dieser Zeit andockt, wird die Automation abgebrochen. Stellen Sie sicher, dass der Saugvorgang innerhalb von 20 Minuten abgeschlossen ist oder erhöhen Sie den Timeout-Wert.

  2. Docking-Zustand:
    Überprüfen Sie, ob der Staubsauger tatsächlich den Zustand “docked” meldet, nachdem er mit dem Saugen fertig ist. Möglicherweise verwendet Ihr Gerät einen anderen Zustandswert.

  3. Logging hinzufügen:
    Fügen Sie Logging-Schritte in Ihre Automation ein, um zu sehen, bis zu welchem Punkt sie ausgeführt wird. Zum Beispiel:

    - service: system_log.write
      data:
        message: "Saugvorgang abgeschlossen, warte auf Andocken"
    

    Fügen Sie solche Logging-Schritte an verschiedenen Stellen ein, um den Fortschritt zu verfolgen.

  4. Separate Automationen:
    Teilen Sie die Automation in zwei separate Automationen auf. Die erste für den Saugvorgang und die zweite für den Wischvorgang. Verwenden Sie einen Helfer (z.B. input_boolean), um den Abschluss des Saugvorgangs zu signalisieren und die zweite Automation zu triggern.

  5. Zustandsänderungen überprüfen:
    Überprüfen Sie, ob sich der Zustand Ihres Staubsaugers wie erwartet ändert. Schauen Sie sich die Zustands-Historie in Home Assistant an, um zu sehen, welche Zustände der Staubsauger während des Vorgangs durchläuft.

  6. Fehlerbehandlung:
    Fügen Sie eine Fehlerbehandlung hinzu, um zu sehen, ob es Probleme bei der Ausführung der Befehle gibt. Zum Beispiel:

    - service: vacuum.send_command
      data:
        command: set_water_box_custom_mode
        params: 202
      target:
        entity_id: vacuum.robi
      alias: Kein Mop
    - service: system_log.write
      data:
        message: "Befehl 'Kein Mop' ausgeführt"
    

Versuchen Sie diese Änderungen und beobachten Sie, wie sich die Automation verhält. Mit diesen zusätzlichen Informationen können Sie besser eingrenzen, wo genau das Problem auftritt.

Quellen
[1] Vacuuming once a day when leaving the apartment - Configuration Vacuuming once a day when leaving the apartment - Configuration - Home Assistant Community
[2] Automation to send notification to iOS after vacuuming? Automation to send notification to iOS after vacuuming? - Configuration - Home Assistant Community
[3] Start vacuum when leaving home (tado) - Configuration Start vacuum when leaving home (tado) - Configuration - Home Assistant Community
[4] Problem with time triggered automation - Home Assistant Community Problem with time triggered automation - Configuration - Home Assistant Community
[5] Vacuum automation help! : r/homeassistant - Reddit https://www.reddit.com/r/homeassistant/comments/o7flr2/vacuum_automation_help/
[6] Vaccum Cleaner stops after a few minutes when started via … Vaccum Cleaner stops after a few minutes when started via Automation - Configuration - Home Assistant Community
[7] Resume (start after pause) on Xiaomi Vacuum does not work #31906 Resume (start after pause) on Xiaomi Vacuum does not work · Issue #31906 · home-assistant/core · GitHub
[8] Script Syntax - Home Assistant Script Syntax - Home Assistant
[9] Allow different actions for Wait for Trigger timeout - Feature Requests Allow different actions for Wait for Trigger timeout - Feature Requests - Home Assistant Community
[10] Automation: Please help me better understand “wait for trigger” and … Automation: Please help me better understand "wait for trigger" and how to implement - Configuration - Home Assistant Community
[11] on Timeout - when does it continue? - Configuration Continue on Timeout - when does it continue? - Configuration - Home Assistant Community
[12] wait for trigger optional timeout issue #19360 - GitHub wait for trigger optional timeout issue · Issue #19360 · home-assistant/frontend · GitHub
[13] “Wait for trigger” with defined but zero timeout timesout immediately "Wait for trigger" with defined but zero timeout timesout immediately · Issue #109586 · home-assistant/core · GitHub
[14] How does Automation Wait for trigger works? How does Automation Wait for trigger works? - Home Assistant Community
[15] Vacuum.send_command Gone? · Issue #114858 · home-assistant … Vacuum.send_command Gone? · Issue #114858 · home-assistant/core · GitHub
[16] Vacuum Automation Error at runtime - Home Assistant Community Vacuum Automation Error at runtime - Configuration - Home Assistant Community
[17] Vacuum.send_command help with rooms in command: spot_area Vacuum.send_command help with rooms in command: spot_area - Configuration - Home Assistant Community
[18] vacuum.send_command does not parse non-integer in template vacuum.send_command does not parse non-integer in template · Issue #35934 · home-assistant/core · GitHub
[19] Vacuum Choice Action and Template not Working - Configuration Vacuum Choice Action and Template not Working - Configuration - Home Assistant Community
[20] Help with zone cleaning parameters - Xiaomi vacuum Help with zone cleaning parameters - Xiaomi vacuum - Home Assistant OS - Home Assistant Community

1 „Gefällt mir“

Laut Trace kommt ein Timeout error. Ich hab den Timeout jetzt mal auf 40min gesetzt um das auszuschließen.

Timeout war die Lösung. Die Reinigung läuft zwar keine 20min allerdings scheint der Status zeitverzögert zu kommen so das ich hier knapp drüber lag —> Fazit: Timeout lieber etwas großzügiger wählen :slight_smile:

1 „Gefällt mir“