Hello Patrik,
first of all many thanks for creating this binding!
I would like to report an issue with the thing registration-/ startup-process. I load the configuration of the hue sync box via a .things file, in which I configured all required parameters as well as the registrationId and apiAccessToken. After the thing file is loaded by the ModelRepository I can see the following logs:
time,level,source,data
"12:12:52.992","INFO","org.openhab.core.model.core.internal.ModelRepositoryImpl","Loading model 'Hue.things'"
"12:12:53.480","INFO","openhab.event.ThingStatusInfoChangedEvent","Thing 'huesync:box:LivingRoom' changed from UNINITIALIZED to INITIALIZING"
"12:12:53.485","INFO","openhab.event.ThingStatusInfoChangedEvent","Thing 'huesync:box:LivingRoom' changed from INITIALIZING to UNKNOWN"
"12:12:53.486","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","Stopping 0 task(s): "
"12:12:53.488","INFO","openhab.event.ThingStatusInfoChangedEvent","Thing 'huesync:box:LivingRoom' changed from UNKNOWN to OFFLINE (CONFIGURATION_PENDING): Device registration pending. Please press the HDMI Sync Box device button for 3 seconds."
"12:12:53.518","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","Stopping 0 task(s): "
"12:12:53.520","DEBUG","org.openhab.binding.huesync.internal.connection.HueSyncDeviceConnection","Connection configuration update for device 192.168.2.190:443 - Registration Id [2]"
"12:12:53.521","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","startTasks - [Update]"
"12:12:53.527","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","Starting task [Update]"
"12:12:53.528","DEBUG","org.openhab.binding.huesync.internal.handler.tasks.HueSyncUpdateTask","Status update query for Sync Box HSB2:C42996E068CC"
"12:12:53.531","INFO","openhab.event.ThingStatusInfoChangedEvent","Thing 'huesync:box:LivingRoom' changed from OFFLINE (CONFIGURATION_PENDING): Device registration pending. Please press the HDMI Sync Box device button for 3 seconds. to ONLINE"
"12:12:53.715","DEBUG","org.openhab.binding.huesync.internal.handler.tasks.HueSyncUpdateTask","Value must be between 0 and 100"
"12:12:53.716","INFO","openhab.event.ItemStateChangedEvent","Item 'HuesyncMode' changed from powersave to passthrough"
"12:12:53.719","INFO","openhab.event.ItemStateChangedEvent","Item 'HuesyncHdmiActive' changed from OFF to ON"
"12:12:53.722","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","Stopping 1 task(s): Update"
"12:12:53.724","DEBUG","org.openhab.binding.huesync.internal.connection.HueSyncDeviceConnection","Connection configuration update for device 192.168.2.190:443 - Registration Id []"
"12:12:53.725","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","startTasks - [Registration]"
"12:12:53.725","INFO","openhab.event.ThingStatusInfoChangedEvent","Thing 'huesync:box:LivingRoom' changed from ONLINE to OFFLINE (CONFIGURATION_PENDING): Device registration pending. Please press the HDMI Sync Box device button for 3 seconds."
"12:12:53.727","DEBUG","org.openhab.binding.huesync.internal.handler.HueSyncHandler","Starting task [Registration]"
"12:12:56.729","DEBUG","org.openhab.binding.huesync.internal.handler.tasks.HueSyncRegistrationTask","Listening for device registration - Sync Box HSB2:C42996E068CC"
"12:12:56.746","DEBUG","org.openhab.binding.huesync.internal.connection.HueSyncConnection","registration in progress: no token received yet"
"12:12:57.747","DEBUG","org.openhab.binding.huesync.internal.handler.tasks.HueSyncRegistrationTask","Listening for device registration - Sync Box HSB2:C42996E068CC"
"12:12:57.760","DEBUG","org.openhab.binding.huesync.internal.connection.HueSyncConnection","registration in progress: no token received yet"
for me it looks like the thing loads the correct parameters from the .things file, connects successfully to the sync box and reads the first set of item states, but then some process overrides the loaded parameters with empty parameters and triggers the registration process again.
Let me know if you need additional information or if I should create an issue for that.
Kind regards,
Sebastian