-
-
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
[FreeboxOs] Introducing new version of the Freebox binding. #9180
Conversation
bundles/org.openhab.binding.freeboxos/src/main/resources/freeboxECCRootCA.crt
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
...nding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/lan/LanManager.java
Outdated
Show resolved
Hide resolved
...reeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/FreeDeviceHandler.java
Outdated
Show resolved
Hide resolved
...reeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/FreeDeviceHandler.java
Outdated
Show resolved
Hide resolved
...reeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/FreeDeviceHandler.java
Outdated
Show resolved
Hide resolved
Is this binding ready for a review? It is marked as a WIP work in progress which is probably stopping people from looking at it. Feel free to remove the tag and edit the title when your wanting someone to check it out in more depth. |
You're right, forgot it. Done. |
@clinique : I think you mixed 2 different things: freebox player and air media player. |
@lolodomo : yes I think you're right. I've got some underlaying architecture to review regarding this. I'm going to push my updates to your other comments right now, and will take a bit of time to experiment a bit more and come back with a new proposal. |
Signed-off-by: clinique <gael@lhopital.org>
One question I have regarding network devices is if they should toggle ONLINE/OFFLINE at thing level of if I should keep the "Reachable" channel instead. Your thoughts ? |
@clinique : PR submitted to your repo proposing a proper way to initialize things + few other fix/changes. |
The channel must be kept, it allows to show device reachability in UIs. |
I played a little with the player thing. I think you should set the |
To summarize, for a player, you have to combine all these inputs:
|
No news ? |
@lolodomo : yes, I'm progressing, you'll have a PR in the coming days. I had to make important changes under the hood because I figured an issue with ApiHandler. The way it was done, would not work if we have two api bridges. I'm also doing the changes regarding initialization of the properties, removed from the discovery process. |
ApiHandler can now be used by multiple bridges Still pending Airmedia proper handling Signed-off-by: clinique <gael@lhopital.org>
Your current version does not compile due to 3 SAT errors. In particulmar, a new class is missing its header and its author. I will restart the review and the testing in the next coming days (I fixed the compilation errors in my branch). |
@lolodomo : expect a new PR soon (today hopefully) with work done regarding your comments on AirMedia devices. I'll ensure it builds flawlessly. Best regards |
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
What's the need of all these new dependencies like hinernate?? |
Required for javax.validation. |
Why is it suddenly used and necessary ? For what purpose exactly ? @kaikreuzer : are such dependencies recommended for openHAB? |
Isn't it something from Java EE? |
This is a validation API for Java Bean. I saw it was used in the ongoing PR that adresses openhab (in the core repo) update and thought it would be nice to try. It's quite convenient to set validation constraints on objects after deserialization. Take a look at Challenge.java class for an usage example. |
Not really. To some extend, add-ons are free to use what is required for them, but for general tooling, we try to define a common set (partially in https://www.openhab.org/docs/developer/guidelines.html#default-libraries) to use. If there is a general wish for a javax.validator implementation to be available, we should imho rather make add-ons only depend on the API, but not on a specific implementation like here from Hibernate. This should rather be provided by openhab-core (and could be replaced for everyone, if that becomes necessary). So how strong is your love for this, @clinique? If you think it is worthwhile and that everybody should use it, I'm open for discussion. |
@kaikreuzer : thanks for jumping on the topic. As written above, I got curious of this when I saw it was used by this core PR. In a first time I though it was available through the core but apparently not. javax.validation seems to be available but an implementation is missing. From my searches, hibernate validation implementation seems to be a well established one. How am I in leave with it ? |
No major impact on OH weight? |
@kaikreuzer : does it mean we put this PR in standby until javax.validator is first embedded in the core framework? |
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
As this version introduces many many modifications, it is presented as a new binding, targetted to repleace the current Freebox Binding in the future.
Signed-off-by: clinique gael@lhopital.org