Philips HDMI Sync API

Hi Partik,
I installed the jar and was able to bring my SyncBox online (running OH4.2.0.M1):

2024-04-09 09:05:23.477 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'huesync:box:HueSyncBox-C429960D50B2' has been added.
2024-04-09 09:05:23.476 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'huesync:box:HueSyncBox-C429960D50B2' to inbox.
java.lang.NoClassDefFoundError: org/openhab/binding/huesync/internal/api/dto/device/HueSyncDeviceInfo
	at org.openhab.binding.huesync.internal.connection.HueSyncConnection.getDeviceInfo(HueSyncConnection.java:105) ~[?:?]
	at org.openhab.binding.huesync.internal.handler.HueSyncHandler.lambda$3(HueSyncHandler.java:190) ~[?:?]
Caused by: java.lang.ClassNotFoundException: org.openhab.binding.huesync.internal.api.dto.device.HueSyncDeviceInfo cannot be found by org.openhab.binding.huesync_4.2.0.202404061822
2024-04-09 09:05:55.080 [INFO ] [sync.internal.handler.HueSyncHandler] - Starting device registration for Sync Box HSB1:C429960D50B2
2024-04-09 09:06:52.616 [INFO ] [openhab.event.InboxRemovedEvent     ] - Discovery Result with UID 'huesync:box:HueSyncBox-C429960D50B2' has been removed.
2024-04-09 09:06:52.994 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'huesync:box:HueSyncBox-C429960D50B2' changed from UNINITIALIZED to INITIALIZING
2024-04-09 09:06:52.996 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'huesync:box:HueSyncBox-C429960D50B2' changed from INITIALIZING to UNKNOWN
2024-04-09 09:06:53.019 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'huesync:box:HueSyncBox-C429960D50B2' changed from UNKNOWN to OFFLINE (CONFIGURATION_PENDING): Device registration pending. Please press the HDMI Sync Box device button for 3 seconds.
2024-04-09 09:06:53.018 [INFO ] [sync.internal.handler.HueSyncHandler] - Starting device registration for Sync Box HSB1:C429960D50B2
2024-04-09 09:07:20.011 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'huesync:box:c429960d50b2' are missing in the respective registry for more than 120s. In case it does not happen immediately after an upgrade, it should be fixed in the binding.
2024-04-09 09:08:09.221 [INFO ] [sync.internal.handler.HueSyncHandler] - Device registration for Sync Box complete - Id: 3

Look good from my point of view:

I rebooted OH a couple of times - the SyncBox-Thing got online everytime.
Thanks for your work!!
I am looking forward to the channels :slight_smile:

Thank you for the test. Basically it looks good - but Iā€™m a bit worried (and confused) about this exception - as it indicates that there was a problem collecting the device information (that the relevant dto class is not known) - but it looks like the device properties where loaded:

Do you see the device info (e.g. firmware version, api version ā€¦) when you expand the thing properties?

Iā€™m not sure if this exception is a problem with the binding code - or related to the new openHAB version. If you see the device details the de-serialization did work and the class was found ā€¦

Yep - channels are next - as Iā€™m tired of switching modes manually - so I want to be able to have core functionality as soon as possible. But of course family and other real life things have priority - else Iā€™m getting in trouble :wink: . Iā€™ll keep you posted if there are relevant functionality - and the PR will show if there is progress.

@AndrewFG: Do have advice if I have to change something in the binding (e.g. timing during framework startup :thinking:) - or what could cause this exception?

with kind regards,
Patrik

I will have a look at your code tomorrow.

1 Like

yes, I can see all that information :ok_hand:

1 Like

I had a look, but to be honest I could not see the reason for ā€œNoClassDefFoundErrorā€. However I did add some comments to your PRā€¦