Is your feature request related to a problem? Please describe.
I'm trying to scale down my smartphone usage, and would like to replace it as an alarm clock by something else. But I do want to be notified when a "favourite contact" tries to call me. Because if that happens during the night, that means there's some sort of emergency. And then I want to be able to respond ASAP, of course.
Describe the solution you'd like
The openHAB Android app already has the feature to notify the openHAB system when a call is incoming.
I think the Android API also offers the possibility to "extract" the caller contact name, either with getCallerDisplayName() or with getContactDisplayName() (no idea what the difference is). (Or maybe with toString().)
Additionally (or alternatively), the app itself can probably determine on the client side whether the caller is a favourite ("starred", apparently) contact, with ContactsContract.PhoneLookup and ContactsContract.ContactOptionsColumns.STARRED, although I don't quite see how those would be implemented.
That being said, I wouldn't know how to implement the first solution either... I've managed to do some development of bindings, but the Android app seems like a totally different environment.
In any case, I would then use openHAB logic to do things when I'm being called by a starred contact.
Describe alternatives you've considered
None.
Additional context
Not applicable.
Is your feature request related to a problem? Please describe.
I'm trying to scale down my smartphone usage, and would like to replace it as an alarm clock by something else. But I do want to be notified when a "favourite contact" tries to call me. Because if that happens during the night, that means there's some sort of emergency. And then I want to be able to respond ASAP, of course.
Describe the solution you'd like
The openHAB Android app already has the feature to notify the openHAB system when a call is incoming.
I think the Android API also offers the possibility to "extract" the caller contact name, either with
getCallerDisplayName()or withgetContactDisplayName()(no idea what the difference is). (Or maybe withtoString().)Additionally (or alternatively), the app itself can probably determine on the client side whether the caller is a favourite ("starred", apparently) contact, with
ContactsContract.PhoneLookupandContactsContract.ContactOptionsColumns.STARRED, although I don't quite see how those would be implemented.That being said, I wouldn't know how to implement the first solution either... I've managed to do some development of bindings, but the Android app seems like a totally different environment.
In any case, I would then use openHAB logic to do things when I'm being called by a starred contact.
Describe alternatives you've considered
None.
Additional context
Not applicable.