[HSBType] openHAB doesn´t accept 360 as Hue value anymore #6788
Comments
It is not Hue specific. Validation for HSBType has been added in the meantime (see #6033).
Your workaround is the solution 😉
What happens now if you set the same color via Hue App? Does it work or does it result in an error too? |
But why does the error message tell me a value between 0 and 360 is fine?
I had a look at the Philips Hue API and the maximum allowed value for is "65535".
So this seems to be a bug in your validation as "360" is an valid value for hue in HSBType. kind regards |
I had a look at the release notes of openHAB 2.3 and 2.4 but there´s no information about a change at the validation of HSBType and the sideeffects for the Hue Binding... |
Because prosa language is not as precise as maths. What it means to say is that the value should comply to |
Understand. So this subject is done and it will stay like this? kind regards |
It stays that 360 is an invalid value for HSBTypes. |
@bredmich You could change the message to e.g. "a value between 0 (inclusive) and 360 (exclusive)" so it should be understandable (perhaps more than "in range of [0;360)"). |
@maggu2810 i´ll have a look and maybe create an PR to make the message more understandable. |
Hi there,
i just migrated from oH 2.3.0 to 2.4.0 and so did my Hue binding.
With 2.3.0 i was able to send a command with a Hue value of 360 to the binding.
This doesn´t work anymore as the binding says 360 is not a valid value, the value needs to be between 0 and 360 :-)
I already opened a thread in the oH community but figured out this was a bug and not a configuration mistake.
Hardware: Raspberry Pi 3 B+
OS: Raspbian 9 (stretch) with openhabian
oH: 2.4.0-1 (Release Build)
Binding: 2.4.0
Things:
Items:
A simple rule:
Log entry when rule triggers:
2019-01-03 23:54:42.320 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert '360,80,30' to a command type which item 'hueFlur_Color' accepts: [HSBType, PercentType, OnOffType, IncreaseDecreaseType, RefreshType].
Log entry when changing the bulb manually with the hue app:
Current workaround:
Why i was using 360?
I used the hue app to choose my color and then had a look at the openHAB log for the value :-)
kind regards
Michael
The text was updated successfully, but these errors were encountered: