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

[homekit] Color temperature behaviour OH 4.3 #18140

Open
blue-kaleidoscope opened this issue Jan 20, 2025 · 1 comment
Open

[homekit] Color temperature behaviour OH 4.3 #18140

blue-kaleidoscope opened this issue Jan 20, 2025 · 1 comment
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@blue-kaleidoscope
Copy link

Hi,

this issue is related to a longer discussion on the OH forum: [openHAB 4.3 Milestone discussion](https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/114?u=jabra_the_hut)

Expected Behavior

When using OH 4.2.1 all my color temperature items behave perfectly normal both on OH UI and on Homekit side. Example item:

Number          Deckenlampe_Hobbyraum_Farbtemperatur
                "Farbtemperatur Deckenlampen Hobbyraum"
                <colorpicker>
                (Deckenlampen_Hobbyraum, Lampen_Farbtemperatur)
                ["Control", "ColorTemperature"]
                {
                    stateDescription=" "[
                            min="250",
                            max="454",
                            step="1",
                            pattern="%.0f mired"
                        ],
                    unit="mired",
                    homekit="Lighting.ColorTemperature",
                    channel ="deconz:colortemperaturelight:raspi4:Deckenlampe_Hobbyraum_Buecherregal:color_temperature" [ profile="ruby:mired_to_kelvin" ],
                    channel ="deconz:colortemperaturelight:raspi4:Deckenlampe_Hobbyraum_Mitte:color_temperature" [ profile="ruby:mired_to_kelvin" ],
                    channel ="deconz:colortemperaturelight:raspi4:Deckenlampe_Hobbyraum_Schreibtisch:color_temperature" [ profile="ruby:mired_to_kelvin" ]
                }

I am using a JRuby profile to convert between Mired and Kelvin which is attached to each color temperature channel. The profile looks as follows:

profile(:mired_to_kelvin) do |event, callback:, command:, state:|
  case event
  when :command_from_item
    callback.handle_command(command | "mired" | "K")
    
  when :state_from_handler
    mired = state.to_f | "K" | "mired"
    callback.send_update(mired.to_f)
  else
    true
  end
  false
end

In Homekit my lights look like this:

Image

With OH 4.3 I have issues with the color temperature items. They look like that in the homekit app:

Image

Image

I tried all different configurations from the documentation. But none works with OH 4.3. I have the impression that the example

// Dimmer item, with allowed range given in Kelvin
Dimmer light_temp { homekit="Lighting.ColorTemperature"[ minValue="2700 K", maxValue="5000 K" ]}

does not even work with OH 4.2.

I tried it with OH 4.3.1 and 4.3.2.

@blue-kaleidoscope blue-kaleidoscope added the bug An unexpected problem or unintended behavior of an add-on label Jan 20, 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/openhab-4-3-milestone-discussion/158139/147

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

2 participants