Skip to content
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

[huesync] Dimmer item connected to brightness breaks binding. #18096

Open
sebaruth opened this issue Jan 12, 2025 · 4 comments
Open

[huesync] Dimmer item connected to brightness breaks binding. #18096

sebaruth opened this issue Jan 12, 2025 · 4 comments
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@sebaruth
Copy link

sebaruth commented Jan 12, 2025

Expected Behavior

  • Thing should stay online and keep its api token.
  • The dimmer item should get updated.

Current Behavior

  • Hue Sync thing goes online.
  • Reads and updates item states.
  • The error Value must be between 0 and 100 occurs
  • Thing goes offline, looses its api token and goes into configuration pending state

Log files:

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:---"
"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:---"
"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:---"
"12:12:57.760","DEBUG","org.openhab.binding.huesync.internal.connection.HueSyncConnection","registration in progress: no token received yet"

Steps to Reproduce (for Bugs)

  • Use the following textual configuration files.

Items file

//Commands
String    HuesyncMode         "Mode"          <switch> {channel="huesync:box:LivingRoom:device-commands#mode"}
Switch    HuesyncActive       "Sync active"   <switch> {channel="huesync:box:LivingRoom:device-commands#sync-active"}
Switch    HuesyncHdmiActive   "HDMI active"   <switch> {channel="huesync:box:LivingRoom:device-commands#hdmi-active"}
String    HuesyncHdmiSource   "HDMI Source"   <player> {channel="huesync:box:LivingRoom:device-commands#hdmi-source"}
Dimmer    HuesyncBrightness   "Brightness"    <slider> {channel="huesync:box:LivingRoom:device-commands#brightness"}

Things file:

Thing huesync:box:LivingRoom "Philips Hue HDMI Sync Box, LivingRoom" @ "gWohnzimmer" [
     host="192.168.2.190",
     apiAccessToken="...",
     registrationId="2",
     port=443,
     statusUpdateInterval=15
] 

Your Environment

  • openhab version: 4.3.1
  • binding version: 4.3.1
  • Openhab Installation via openhabian 1.9.1 on a raspberry pi 4:
@sebaruth sebaruth added the bug An unexpected problem or unintended behavior of an add-on label Jan 12, 2025
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/philips-hue-hdmi-sync-box/156352/8

@pgfeller pgfeller self-assigned this Jan 12, 2025
@pgfeller
Copy link
Contributor

@sebaruth

Thank you for the report. I'll have a look into this as soon as possible.

Thing goes offline, looses its api token and goes into configuration pending state

Probably same/similar problem as reported in #18062.

➡️ I'll analyze/solve the token problem and then I'll address this issue. If I understand correctly, this does not make the binding unusable for your purpose atm - right? Else I'll change priorities to get your configuration up.

@pgfeller pgfeller pinned this issue Jan 12, 2025
@pgfeller pgfeller unpinned this issue Jan 12, 2025
@sebaruth
Copy link
Author

Yes at the moment my use case does not depend on the dimmer item. So no need to switch priorities.

@triviniu
Copy link

I have wrestled with the issue for the last day or so, and with this report and some digging find a usable workaround is to declare the item as type "Number:Dimensionless", instead of "Dimmer". This is what the GUI itself states, as well as the documentation, but the example says otherwise, so should be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

4 participants