Repeat Alerts via app until acknowledged

I have setup my washing machine to alert me then the clothes are done and it comes across the home assistant app on my phone. I further set it up that I have it change the state from ‘clean’ to ‘idle’ once I click on the notification which allows me to acknowledge it.

The question I have, how can I set it up to keep alerting me that the clothes need to be taken out of the washer if I haven’t acknowledged the notification yet?

Here is a screenshot of my config for it:

Thanks.

1 Like

Have the appropriate washing machine state trigger an input boolean to turn on. Have an automation that runs every X minutes until the boolean is turned off.

Example from a medication reminder I use.

#########################################################
#                                                       #
#                MEDICATION REMINDER                    #
#                                                       #
#########################################################

- alias: "Morning Medication Reminder"
  id: a4c89b91-0d53-4637-9234-196c7623a4fe
  trigger:
    - platform: time
      at: "06:30:00"
  condition:
    - condition: state
      entity_id: input_boolean.medication_reminder
      state: "on"
  action:
    - alias: "Repeat the sequence UNTIL the conditions are true"
      repeat:
        sequence:
          - service: notify.mobile_app_adams_iphone
            data:
              title: "Medication Reminder"
              message: "Take your Medication!"
              data:
                tag: "medication-reminder"
                actions:
                  - action: SNOOZE
                    title: Snooze
                  - action: TAKEN
                    title: Taken
          - delay:
              minutes: 10
        until:
          - condition: state
            entity_id: input_boolean.medication_reminder
            state: "off"

#########################################################
#                                                       #
#             TURN OFF MEDICATION REMINDER              #
#                                                       #
#########################################################

- alias: "Turn off Medication Reminder"
  id: 0a1040a9-35ae-467d-a1fb-94f025c81e16
  trigger:
    - platform: event
      event_type: mobile_app_notification_action
      event_data:
        action: "TAKEN"
    - platform: time
      at: "00:00:00"
  action:
    - service: input_boolean.turn_off
      entity_id: input_boolean.medication_reminder
    - delay:
        minutes: 15
    - service: input_boolean.turn_on
      entity_id: input_boolean.medication_reminder

#########################################################
#                                                       #
#            END OF CONFIGURATION FILE                  #
#                                                       #
#########################################################

There’s an integration for that…

1 Like

So I tried to take everyone’s suggestions and have gotten it to the point where I rewrote the config and have put in an input boolean, but have tried ways then to repeat notifications if not answered and it still only sends it out once.

Here is my latest config:

- alias: Set washing machine active when power detected
  trigger:
  - platform: numeric_state
    entity_id: sensor.washing_machine_current_consumption
    above: 4
  condition:
    condition: or
    conditions:
    - condition: state
      entity_id: sensor.washing_machine_status
      state: Idle
    - condition: state
      entity_id: sensor.washing_machine_status
      state: Clean
    - condition: state
      entity_id: sensor.washing_machine_status
      state: Finishing
  action:
  - service: input_select.select_option
    data:
      entity_id: input_select.washing_machine_status
      option: Running
  id: 27c933ff6f9c4d4195db312d29f12d01
- alias: Set washing machine finished when power drops
  trigger:
  - platform: numeric_state
    entity_id: sensor.washing_machine_current_consumption
    below: 4
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: input_select.washing_machine_status
      state: Running
  action:
  - service: input_select.select_option
    data:
      entity_id: input_select.washing_machine_status
      option: Finishing
  id: fceff39b9a3f47d0b229df412bfe644d
- id: 2cfd9911671b4a7aabca572de88ebd19
  alias: Set washing machine clean after timeout
  trigger:
  - platform: state
    entity_id:
    - input_select.washing_machine_status
    to: Finishing
    for:
      hours: 0
      minutes: 3
      seconds: 0
  condition:
  - condition: and
    conditions:
    - condition: state
      entity_id: input_select.washing_machine_status
      state: Finishing
  action:
  - service: input_select.select_option
    data:
      option: Clean
    target:
      entity_id: input_select.washing_machine_status
  mode: single
- id: '1664915357105'
  alias: Notify - Washing Machine Finished
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_select.washing_machine_status
    to: Clean
  condition:
  - condition: and
    conditions:
    - condition: state
      entity_id: input_select.washing_machine_status
      state: Clean
  action:
  - service: notify.notify
    data:
      title: Washing Machine Done
      message: Remove the clothes
      data:
        tag: washing
        actions:
        - action: MACHINE_EMPTIED
          title: It's done
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.washing_machine_emptied
  mode: single
- id: '1665423737462'
  alias: Notify - Washing Machine Emptied Action
  description: ''
  trigger:
  - platform: event
    event_type: mobile_app_notification_action
    event_data:
      action: MACHINE_EMPTIED
  condition: []
  action:
  - service: notify.notify
    data:
      message: clear_notification
      data:
        tag: washing
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.washing_machine_emptied
  - service: input_select.select_option
    data:
      option: Idle
    target:
      entity_id: input_select.washing_machine_status
  mode: single
1 Like

You don’t have a repeat for your notification service call…

action:
  - service: input_boolean.turn_on
    target:
      entity_id: input_boolean.washing_machine_emptied
  - alias: "Repeat notification as long as the Boolean is On"
    repeat:
      while:
        - condition: state
          entity_id: input_boolean.washing_machine_emptied
          state: "on"
      sequence:  
        - service: notify.YOUR_ACTUAL_NOTIFIER
          data:
            title: Washing Machine Done
            message: Remove the clothes
            data:
              tag: washing
              actions:
              - action: MACHINE_EMPTIED
                title: It's done
        - delay: "00:00:30"

Also make sure you specify the actual notification service you want to use, do not use notify.notify… it may give you unpredictable results.

Drew,

Thank you, it seems to be working now. I only have 2 questions:

  1. how can I get it to send the initial alert for when it the clothes are done and then have it go every 15 minutes after the initial notification?
  2. What is wrong with using notify.notify? I have no problem changing it, just curious as to what kind of instability it could cause.

Thanks.