Push notification with buttons

is there a way to create notifications with buttons so that you can confirm a notification. You could then use this to control something!

for example:

when the 3D printer is ready, send a notification with: disable 3D printer yes/no! If you press yes, the 3D printer turns off, if you press no, it stays on.

Something like
image
?

Yes but than with buttons in the push notification! A button with yes and a button with no! So you can control something directly in your notification. You know what i mean?

Have you tried it?


1 Like

This doesn’t work the same on iOS:

But it’s a limitation of iOS I think.

I think it will work like that! You have to swipe down the notification! I will test it and let you know!

You can also tap the notification, after which Homey shows you the options:

Not on iOS: after the Homey app opens, nothing happens.

pls check your App and iOS settings :wink:

Re-tested for you on iOS …
image

Which iOS version?

For me in works both on iOS 17.6/17.7 and iPadOS 18.

Doesn’t work for me on iOS18 (long-pressing does, but short-pressing doesn’t).

There’s no setting that I can change to enable this because it’s something that’s handled in the app, and I think it might be related to having to reinstall the Homey app because notifications weren’t working at all anymore (and even after a reinstall it wasn’t working until I performed a workaround).

Strange. I initially was also not able to receive notifications when I installed my Homey Pro two months ago. But I found a way to trigger the ‘enable notifications’ prompt in the iOS app. Since then it works, including the above subsequent confirmation pop-up screen in the Homey app.

Which work-around did you apply?

Here it works!

now the next question! I now receive this notification, but how can I ensure that I control a device when I press one of the buttons? I’m quite a novice when it comes to this!

How do i make a good flow with it?

The confirmation push message card has two outputs/connectors:

  • one for True (you answered Yes) and
  • one for False (you answered No).

It actually also has a third output: the Error option. That option applies when you don’t respond to the pop-up notification (if I recall after 10 minutes). This third option is only available when using Advanced Flows.

In a Basic Flow it would look something like this:

Select my other Homey, which triggered the “Do you want to receive notifications?” question from iOS.

This is also possible with the Telegram app (and Pushover I think).

Thanks! It works like a charm! :grinning:

1 Like