openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
193 stars 128 forks source link

Feature request: Allow iOS notifications to return values (for rules) #154

Closed bdleedy closed 6 years ago

bdleedy commented 6 years ago

It would be great to write a rule that says, "it's after 11PM, the garage door is open. Close it?" and give you yes/no options and then handle that in a rule to then close the door. I'm sure there are MANY more scenarios but this allows for a much more comprehensive 'fuzzy' automation that allows for intelligent input. Maybe I'm working in the garage and want it open.

So as far as the technical is concerned. I know it's possible to prompt in this way, the question becomes is it possible for the responses to be custom. On the other side of things, I would assume that sendNotification would need extended or a different method like sendPrompt would need to the written.

mueller-ma commented 6 years ago

Hey @bdleedy, this sound like a great idea, also for openhab-android. @kaikreuzer Where should this idea (and possible implementations) be discussed? ESH?

kaikreuzer commented 6 years ago

@mueller-ma Good question. Currently, the "sendNotification" action is specific to the openhab-cloud integration, which is in openhab2-addons. If you would want to prefer it in a more general and wider scope, it could be part of an ESH notification infrastructure (as it has been sketched out in https://github.com/eclipse/smarthome/pull/459), but this is a pretty complex topic, so going for the specific action above is probably a better way to start.

bdleedy commented 6 years ago

@kaikreuzer So is this an iOS or a cloud change? Or both?

mueller-ma commented 6 years ago

Can you open an issue in eclipse/smarthome?

kaikreuzer commented 6 years ago

@bdleedy & @mueller-ma As explained above, it is a change in the sendNotification action in openhab2-addons, so that's where the issue should be opened.

bdleedy commented 6 years ago

That’s what I thought. Thanks for clarifying.

mueller-ma commented 6 years ago

See https://github.com/openhab/openhab-cloud/issues/160

bdleedy commented 6 years ago

Opened #3296 above