Nag prompt Blueprint (Android Notification)

This blueprints creates configurable nag notifications (ideal for medicine or chore reminders) until the user acknowledges them as ‘done’

(I hope this works btw - it works from a GIST)

Follow the instructions on the inputs - should work fine - requires both an android notification target and an input boolean to allow the user to ack it for the remainder of the hour

This blueprint doesn’t reset the input_boolean - that has to be done externally to this - I have a single automation that resets them all at 00:00 - this was considered out of scope of this blueprint

Blueprint:

Blueprint, which you can import by using this forum topic URL:

blueprint:
  name: Nag prompt blueprint
  description: Nag a mobile device to do something
  domain: automation
  input:
    timeslice:
      name: Every x minutes
      description: Gap between nag prompts (`/5` gives every 5 minutes)
    hours:
      name: Hour of the day
      description: Hour of the day to nag
      selector:
        number:
          min: 0
          max: 23
    message:
      name: Message to nag
      description: Message to nag the user with
    target_device:
      name: mobile app to notify
      description: mobile app to notify (type in service)
    notify_bool_el:
      name: Input Boolean Notify Done
      description: Input boolean that silences this when 'Done' is clicked on notification (msut be manually reset - or via another automation)
      selector:
        entity:
          domain: input_boolean
 
trigger:
  - platform: time_pattern
    hours: !input hours
    minutes: !input timeslice
  - platform: event
    event_type: mobile_app_notification_action
    event_data:
      action: !input message
condition:
  - condition: state
    entity_id: !input notify_bool_el
    state: 'on'
action:
  - choose:
      - conditions:
          - condition: template
            value_template: '{{trigger.platform ==''time_pattern''}}'
        sequence:
          - service: !input target_device
            data:
              message: !input message
              data:
                actions:
                  - action: !input message
                    title: Done
      - conditions:
          - condition: template
            value_template: '{{trigger.platform ==''event''}}'
        sequence:
          - service: input_boolean.turn_off
            data: {}
            entity_id: !input notify_bool_el
mode: single
4 Likes