Actionable Notifications in iOS

Actionable notifications, switch input Boolean

So trying to work out here. I have a calendar event in local calendar which sends a push notification to my iPhone to water the indoor plants.

In the notify action I currently have this

sticky: "true"

push:

badge: 1

And i then have another action turn on an input Boolean, incase I’m not home and I clear the notification, so when I arrive home if the input Boolean is on to send me a notification.

Ive been trying to find a way to switch that input Boolean off when I’ve watered the plant. So I thought I could use an actionable notification, my plans were when the notification comes up to have a button to say something like watered the plants and to turn the input Boolean off.

But I’m not sure how to do this, if I could have someone’s help please. I’m aware it should be in the data section of the notify cation but I’m not sure what to put.

Also in my arrive home notification, if the input Boolean is on, i have the following in the data section

push:
sound:
name: default
critical: 1
volume: 1
input:
` reminder_minutes: “15”``

Here’s some pictures Notifications - Album on Imgur

Im also on ios