openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

[homematic] Dimming Actuators are shown as Switches in Homekit #9068

Closed maedball closed 3 years ago

maedball commented 3 years ago

Expected Behavior

A Dimming Actuator should be shown as a Dimming Actuator when selected Lightning in OpenHAB

Current Behavior

Instead of showing the slider to select a percentage of brightness, the Dimming actuator is shown as an on/ off switch

Steps to Reproduce (for Bugs)

Set Lightning in the new Main UI for the item and check on the IOS device that the dimmer is shown as a switch

image

20201119_000359000_iOS

Context

I am currently playing around with Openhab3. Unfortunately I have no idea if this is a Homematic / Homekit or even a core issue :-(

Your Environment

Ubuntu 20.04 LTS Openhab 3 M2 + Homematic Test jar (the dimming actuator fix) OpenJava 11

MHerbst commented 3 years ago

Ist this really a problem of the binding? I must admit that I have no idea about Homekit and possible defaults, but according to the Homekit documentation it necessary to set some tags or metadata (https://www.openhab.org/addons/integrations/homekit/#using-metadata). You could use the metadata editor for Homekit in Main UI and set e.g. it to Lightning.Brightness.

maedball commented 3 years ago

My guess is this is more a homekit Issue. I am still waiting for some non homematic dimmers to arrive in the mail to verify that the same thing happens with non homematic dimmers. I will post an update once they are here.

MHerbst commented 3 years ago

I have the same feeling. I in yesterday's test version, that has been merged today, I made a correction for dimmers because they had a wrong category and the display in Main UI was not correct. Maybe this also can have an influence on Homekit.

maedball commented 3 years ago

Once the test Repo is back: i got hit by this issue, i will try it out

maedball commented 3 years ago

It is still persistent in this version, is that the one you are talking about? 228 │ Active │ 80 │ 3.0.0.202011230332 │ openHAB Add-ons :: Bundles :: Homematic Binding

yfre commented 3 years ago

looks like homekit configuration issue. the item can be even a virtual item not connected to any physical device/homematic. i have not tried with OH3 but in OH2.x you would need to add something like this (depending whether it

Dimmer legacy_color_light_dimmable "Legacy Color Light Dimmable" [ "DimmableLighting" ] Color legacy_color_light_hue "Legacy Color Light Hue" [ "ColorfulLighting" ]

yfre commented 3 years ago

@maedball i checked, in OH3 you can do it via UI. please add to your metadata "Lighting.Brightness"

maedball commented 3 years ago

@yfre: Thanks for the help. Looks like multiple and the assignment of Lightning. Brightness in addition to Lightning fixed my misconfiguration.

image

Maybe it would make sense to have a database which device needs which Tag in every Binding? I think this would make a lot of first installations a lot easier.

yfre commented 3 years ago

glad to hear that it worked for you. so, im closing the ticket. the database of device -> tag is in the documentation https://www.openhab.org/addons/integrations/homekit/ which for sure can be improved and adapted to openhab3.