Confirmation before triggering

hi,

my parents can control their garage doors with openHAB using the iOS app.
sometimes they accidentally push a button (while scrolling through the app) and the garage opens :wink:

would it be possible to add an confirmation pop up ("open garage door? Yes / No) for certain buttons?

of course not every switch or button should trigger a pop up! the app could ā€œknowā€ when to show a confirmation dialogue box by looking at certain tag in a sitemap item
ā€“> Switch item=pushbutton1 label=ā€œGarage 1ā€ confirmation=ā€œyesā€

thank you,
stefan

Hi Stefan,

Dont think so.
But with using my.openhab.org you could send Them a notification that the door is open.

Then they could close it again

Cheers
Karsten

You could potentially create a workaround using two items (the first one to ā€œunlockā€ the second one. In the sitemap, you could even display the second item only, if the first one is in unlocked state (using "visibility).
Just create a rule that automatically sets the first item to ā€œlockā€ again after a minute or so.

@karsten yes, thatā€™s what i do at the moment :wink: i use prowl which seems way more reliable than my.openhab notifications.

@Kai that seems to be worth a try, thanks! do you think it would be possible to add such a functionality to openhab? or maybe it isnā€™t necessary to change anything in openhab and just make the ios app react to a custom tag in a sitemap item definition?

Yes, it could be considered as a special behavior for widgets with the future version of sitemaps (see discussion at Eclipse Community Forums: Eclipse SmartHome Ā» Editable sitemaps through REST)

Regards,
Kai

Sorry to necropost, but figured this might add to the conversation that is still showing up at the top of Google searches for confirmations in OpenHAB.

What Iā€™ve done is a not a true ā€œconfirmationā€ but requires a two-step action to triggerā€¦ which sounds like itā€™s what youā€™re after.

This sitemap entry set shows an item that says ā€œGarage Door [STATUS]ā€ that you then select to get the submenu for the switch to open/close the door.

        Text item=GarageDoorString label="Garage Door [%s]" {
            Switch item=GarageDoorSwitch label="Garage Door" mappings=[OFF="Closed",ON="Open"] 
        }

Hereā€™s the one I use to prevent actually turning off my water by accident: :slight_smile:

        Text item=WaterValveShutOffStatus label="Main Water Valve [%s]" icon="water" {
            Switch item=WaterValveShutOffStatus label="Main Water Valve [%s]" icon="water"
        }