OH4.1.0.M2 and SNAPSHOT: HSB Color Picker breaks communication and Scroll Bars Short

Hi All

Looking for some help again.

I have a Colo picker Item Linked to an HSB Color Channel (via Hue API V2).

I have three issues that I cannot resolve.

  1. The sliders are incredibly short (circles) so it is difficult to make an accurate selection

  2. When trying to adjust the “H” value comms between browser and OH fails and requires a reload.

  3. Sometimes the sliders are sometimes not shown at all.

This was discussed on the Hue API V2 thread and it was suggested I create a separate topic for this as it appears to be OH related rather than Hue Binding related.

The following demonstrates the issue.

Hue Color

There is nothing logged in openhab.log

11:58:13.926 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,100,73
11:58:13.927 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,100,73
11:58:13.927 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.845,100,100 to 260,100,73
11:58:13.998 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,100,73 to 260.845,100,73.12
11:58:13.999 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Brightness' changed from 100 to 73.12
11:58:13.999 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Last_Updated' changed from 2023-10-13T11:57:44.570339500+0200 to 2023-10-13T11:58:13.998670400+0200
11:58:13.999 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.845,100,73.12 to 260.802,100,73.12
11:58:14.127 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,100,100
11:58:14.128 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,100,100
11:58:14.128 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.802,100,73.12 to 260,100,100
11:58:15.010 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,100,100 to 260.802,100,100
11:58:15.010 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Brightness' changed from 73.12 to 100
11:58:15.010 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Last_Updated' changed from 2023-10-13T11:58:13.998670400+0200 to 2023-10-13T11:58:15.009657700+0200
11:58:15.011 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.802,100,100 to 260.845,100,100
11:58:15.011 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Last_Updated' changed from 2023-10-13T11:58:15.009657700+0200 to 2023-10-13T11:58:15.010659100+0200
11:58:16.129 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,100,100
11:58:16.129 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,100,100
11:58:16.130 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.845,100,100 to 260,100,100
11:58:17.450 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,68,100
11:58:17.451 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,68,100
11:58:17.451 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,100,100 to 260,68,100
11:58:17.510 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,68,100 to 260.009,68.02800,100
11:58:17.510 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Last_Updated' changed from 2023-10-13T11:58:15.010659100+0200 to 2023-10-13T11:58:17.509619200+0200
11:58:17.651 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,35,100
11:58:17.652 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,35,100
11:58:17.652 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260.009,68.02800,100 to 260,35,100
11:58:17.858 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,2,100
11:58:17.858 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,2,100
11:58:17.858 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,35,100 to 260,2,100
11:58:18.059 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'Hue_color_spot_7_Color' received command 260,0,100
11:58:18.059 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Hue_color_spot_7_Color' predicted to become 260,0,100
11:58:18.059 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,2,100 to 260,0,100
11:58:18.522 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Color' changed from 260,0,100 to 221.539,0.01300,100
11:58:18.523 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Hue_color_spot_7_Last_Updated' changed from 2023-10-13T11:58:17.509619200+0200 to 2023-10-13T11:58:18.522355400+0200

Item definition is:

label: Hue color spot 7 Color
type: Color
category: ""
groupNames: []
groupType: None
function: null
tags:
 - Control
 - Light

And THING Config is:

UID: hue:device:513878a587:fb032c0c-4187-4f93-9bab-3ae1c3dc5567
label: Hue color spot 7
thingTypeUID: hue:device
configuration:
  resourceId: fb032c0c-4187-4f93-9bab-3ae1c3dc5567
bridgeUID: hue:bridge-api2:513878a587
channels:
  - id: color
    channelTypeUID: system:color
    label: Color
    description: Controls the color of the light
    configuration: {}
  - id: color-temperature
    channelTypeUID: system:color-temperature
    label: Color Temperature
    description: Controls the color temperature of the light from 0 (cold) to 100 (warm)
    configuration: {}
  - id: alert
    channelTypeUID: hue:alert-v2
    label: Alert
    description: Activate the alert for the light.
    configuration: {}
  - id: last-updated
    channelTypeUID: hue:last-updated-v2
    label: Last Updated
    description: The date and time when the thing was last updated.
    configuration: {}
  - id: dynamics
    channelTypeUID: hue:dynamics
    label: Dynamics
    description: The duration (ms) of dynamic transitions between light or scene states.
    configuration: {}
  - id: color-temperature-abs
    channelTypeUID: system:color-temperature-abs
    label: Color Temperature
    description: Controls the color temperature of the light in Kelvin
    configuration: {}
  - id: color-xy-only
    channelTypeUID: hue:advanced-color
    label: Color XY Only
    description: Set the color xy parameter of the light without changing other
      state parameters.
    configuration: {}
  - id: dimming-only
    channelTypeUID: hue:advanced-brightness
    label: Dimming Only
    description: Set the dimming parameter of the light without changing other state
      parameters.
    configuration: {}
  - id: on-off-only
    channelTypeUID: hue:advanced-power
    label: On/Off Only
    description: Set the on/off parameter of the light without changing other state
      parameters.
    configuration: {}

I also tested this on a OH 4.1.0.M1 backup and get the same.

Any suggestions or advise?

Thanks
Mark

Edit: I would expect the sliders to be of a similar size to the color_temperature sliders:

1 Like

See Fix color picker not displaying color sliders by florian-h05 · Pull Request #2136 · openhab/openhab-webui · GitHub

1 Like

That seems to have fixed it for me. Thank you!

1 Like