-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
OH Core: Sitemaps2 #1219
Comments
IMHO:
In general it's a bit hard to properly answer to those questions though without knowing what the suggested alternative actually is... |
It's more about what is preferred for Android development. SSE was chosen back then because Websockets were not widespread. But we have a choice now.
Sitemaps do a lot. "Interactively" hiding items. Computing states for child items. State dependent colors. State dependent icons. Push button switches (via "mappings"). The selection widget. The thing is: openHAB supports all of the above also without Sitemaps (but you would use different REST API endpoints like /events, /things, /items). A future API might be more like this:
That's one model. The point is, the API could be absolutely different to what is in place today. |
I very much suggest to keep discussions about the evolution of sitemaps to the one existing issue at eclipse-archived/smarthome#5337. It makes no sense at all to start a dedicated discussion for every UI that might then make use of it. |
@kaikreuzer The design you mention is too complicated and it doesn't look like it will get finished ever or is maintainable by anyone else then the contributor. Why was there nobody actually talking to the consumers of such an API? I'm trying to gather use-cases first and then design an API. And that will probably be more like Yannicks Cards implementation. For obvious reasons I cannot hijack that thread, as I don't like the design at all. |
This actually sounds like a great approach 👍
Currently, that's the case, yes.
For us it doesn't really matter. Websockets probably are a bit nicer since they're supported by OkHttp directly (one needs an additional library for SSE), but both do work for us.
That probably doesn't matter too much for us either. From the app point of view, I only have two wishes OTOH:
|
Just a few quick question to know how android OH maintainers think about it.
Cheers, David
The text was updated successfully, but these errors were encountered: