-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tr064] Initial Contribution #6678
Conversation
I don't really understand your proposal. Are you still thinking about it as a profile? If so, making it available for any Call or String channel is the most generic option we can imho have...? |
The The callmonitor of the The |
I still do not understand why you talk about databases, this seems to introduce a huge unnecessary complexity to the discussion. |
All I want is an interface The user than can apply the lookup profile (configured with the datasource and additional information like So I want to remove the interface declaration (and profile classes) from this binding, add them as a new contribution (probably to core, similar to the |
With this you would introduce another layer of complexity as this profile implementation would just be an empty hull and not usable if there isn't any "datasource" (which is a so far non-existing concept) available. Having the PhonebookLookup profile in place as discussed above is imho pretty good as it only turns up as an option if people are using this binding. I'd actually even have an improvement suggestion: Instead of requiring a Thing as a parameter, it should only be registered if a fritzbox thing is set up and a phonebook is available. Selecting a phonebook (could be a reference of fritzboxname+phonebookid) could then be the only required parameter. |
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
e1d4aad
to
1aebd35
Compare
Good idea. What should the profile be named then? |
Should still be just "PhonebookLookup" - my idea from above was to have a single profile and only have the Thing being selected as part of the required parameter (fritzboxname+phonebookid). This keeps the profile list clean (there is just a single "PhonebookLookup" entry) and only when the user choses it, he is confronted with having to think about "which fritzbox?" and "which phonebook id?" and answer both these question by selecting one of the provided options.
Would imho be extremely helpful, yes! |
Is it possible to dynamically provide options for the thing-UID? A drop-down list would be nice, but I don't know how to achive that. The textual configuration really is a PITA. It always takes me hours to figure out how the textual thing configuration works. But ok. |
Most certainly! Just the very same way as for any other config descriptions: By implementing a
Think of all the hours you can save the users of the binding 😄 . But yeah, especially the profile syntax isn't yet documented anywhere properly, so it might not be easy to provide this. Feel free to leave it to the end and I can try to help figuring out the right syntax for the example then. |
Signed-off-by: Jan N. Klug <[email protected]>
Yes, that's what I mean. It would be great to look up for numbers in all phonebooks at once. As I already wrote I use different phonebooks. The first one for private, the second one for business contacts (home office). By resolving the caller name I get notifications from my Echos using Alexa's TTS when somebody's calling. But at the moment it's working for one phonebook only. |
Signed-off-by: Jan N. Klug <[email protected]>
... which could be potentially even be coming from different bindings. Imho this is too much for a profile and the better way to have it covered is through calling actions in rules. Besides the profile, I hence think that we should also have an action for any custom complex use cases. |
All phonebooks of a thing would be easy, it‘s just one additional entry in the parameter options. What actions do you think about? Getting the phonebook(s) or looking up numbers or both? |
Could you please re-create this PR against the |
This provides a replacement for the OH1 "fritzboxtr064" binding.
Attention! OH3 only - requires Java 11.
Signed-off-by: Jan N. Klug [email protected]