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
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ā
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 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?
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:
Text item=WaterValveShutOffStatus label="Main Water Valve [%s]" icon="water" {
Switch item=WaterValveShutOffStatus label="Main Water Valve [%s]" icon="water"
}