🔔 Actionable notifications for Android

Anyone have an example they can share which presents the user with list of nuber (1 to 24)? I want to pass that selection to a Timer

thank you

There are limits to how many actions you can have… you can use the REPLY action to get a text input for your number.

action:
  - action: notify.mobile_app_<your_device_id_here>
    data:
      message: "This is where the message goes"
      data:
        channel: automation_throttle_backyard_motion  
        actions:
          - action: "REPLY"
            title: "Hours to Disable (1-24)"

One of the issues using a “REPLY” action is that you loose the ability to append the context.id to it to get a unique value for the Wait for Trigger. You can use unique channel ID’s to help with that.

UPDATE:

Example taking advantage of the textInput behavior noted below:

action:
  - action: notify.mobile_app_<your_device_id_here>
    data:
      message: "There's something moving in the Back Yard"
      data:
        actions:
          - action: "DELAY_TIMER_{{context.id}}"
            title: "Set Delay Hours (1-24)"
            behavior: textInput

we had a recent update where we now support textInput option like iOS so you can now differentiate between them

https://companion.home-assistant.io/docs/notifications/actionable-notifications#building-actionable-notifications

1 Like

Glad to see this is possible, but is confusing/complex.

I suspect I need this flow?…

  1. Create Timer specific to a given Automation
  2. Create Actionable Notification
  • user inputs number from on-screen keyboard
  • number is passed to Timer to set the upper limit
  1. Create Automation
  • add Timer as a Condition… do not trigger while Timer = 0
  • add Actionable Notification as Action

I was hoping there was a visual example that would help guide me. I suspect MANY people would find this valuable since it could be applied to many things… Timers, Dim values, RGB values, setting Time of Day (reminders, triggers, etc)

Sometimes (maybe everytime) i get a notification and chose some action, it also fires different actions from other automations based on this blueprint ??

Same here, I use the blueprint for checking the lock status for three doors with an action to close it. All quite similar, but still different. Choosing one action closes all doors.
Did you find the cause?

1 Like