[shelly] Adapt shelly v1 handler to californium 4.0.0-M6 - #20728
[shelly] Adapt shelly v1 handler to californium 4.0.0-M6#20728holgerfriedrich wants to merge 2 commits into
Conversation
|
@ErikDB87 FYI |
1f77206 to
e140913
Compare
|
just to document why I use
|
|
@holgerfriedrich As I've mentioned in the issue, I can't understand that this is necessary. I've done a tiny tweak to your previous fix and made a build that I've posted on the forum, hoping that somebody can confirm that it works. I can't quite understand how it can't. |
|
I've created #20729, and I think there's no need for further work on this. |
|
As per above comment |
…nhab#20704)" This reverts commit d90d079. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [shelly] Adapt shelly v1 handler to californium 4.0.0-M6 Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
e140913 to
859a622
Compare
|
@holgerfriedrich Just for the record: It doesn't look like there are problems caused by the changes to edit: Looking at your latest changes, this might in fact be related. The custom options must be registered to receive the "correct types", which is what starts all this. So, by finding other ways to read the data, we might avoid the whole registration..? |
|
Question: Why to we upgrade to a milestone build? M6 is not an official release, but breaks compatibility to existing bindings |
Valid question. The point is we were on an earlier milestone release (M2) before, for quite a while now. I cannot remember the reason why I did an upgrade to a milestone. What I remember is that the stable version we used before had kind of a hacky replacement for ecdsa lib which caused warnings during compilation. Of course we can go back to M2 in core. I'd assume that the compilation problem we experienced will be back with the stable release (whenever it is). tradfri change was minimal (one class to be renamed. Do we have reason to believe that M6 causes other issues besides my obviously wrong fix for the compilation problem after the upgrade? |
|
@holgerfriedrich We should consider that this breakss compatibility to OH 5.1 (not resolving the dependency). Did you checked the Tradfi binding, this also uses Californium |
What I see as perhaps the biggest problem is that test/dev JARs won't be compatible across the divide. Shelly is undergoing some major refactoring, and there's a great need for testing by users because you need the devices to test. Each change must essentially be build twice, one for "Californium M2" and one for M6. Changing core checkout takes ages for me, so that will mean several hours just for making one build of each. These changes will most likely be back in the final release, so if we might as well "eat them now", but it is very inconvenient. If we could come up with some code that works for both versions, it would make everything much easier. |
I think there is no way, because of structural changes and 5.1 does not provide the M6 dependency. I see no benefit to make the move now, it just creates pain while not fixing specific problems. I'm blocked and we can't finish #20396 I prefer going back to M2, finishing #20396 |
It's difficult to know what is the best way. The problem for me is that I also work on core, so I have to have an up-to-date core checked out. That means that the updated dependency will be used regardless of what the It's not "difficult" to check out a different version of core, but because Eclipse must be "playing along", it means that all of core must be built - multiple times, because when one bundle is built, Eclipse will also rebuild every bundle that depends on it - and this goes on almost forever before it's finished. In addition, there are problems with certain core bundles that result in endless build loops, and I must manually "break" those loops, so I can't just leave the computer alone while it does this - I must actually monitor the process to some extent. So, to the degree I should be involved, it will kind of "have to" be working with latest core. Everything would be much easier if we could find a solution that would work against both M2 and M6... |
We will get the same situation no matter when it's done. If it's bumped to M6 just after 5.2 has been released, it means that all snapshot builds of 5.3 will be incompatible with 5.2. In that sense, since we're not too far away from 5.2 release, now isn't such a bad time. I'm still hoping that one of @holgerfriedrich's approaches will work with both versions. If we can avoid the registration, I think the "new code" will also work with M2. |
|
I've looked at this a bit now, and this is what I'd call very bad practiced by Californium. They have defined There are |
|
Can we get it all working with m6 this weekend? |
|
As we do not seem to have a proper fix, I’d like to revert m6 immediately. |
This is the next try to get Shelly v1 running with californium 4.0.0-M6.
May resolve #20727.
This reverts commit d90d079.