-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] OH3 homekit Colortemperature and hue issues #9799
Comments
@pug304 can you share the configuration of the metadata (how it looks like when you add tags) ? logs could be also interesting. 2 things i could think of:
|
for the parent item: for switch: for brightness: for Coltemp: for hue: as you see, everything are standard settings. another test: setting coltemp to a value bigger then 0 the app won't close, but the icon status changes to no response. Indeed another behavior. I'm ware value=0 isn't NUL ;) rollback to remove coltemp: with having brightness at 0 absolute no issue test with hue: Homekit app stalls immediate Both tests have set the metadata not at same time |
yes Eugen, thats absulte the same issue! Looking forward to your investigation! |
@pug304 |
sounds good! |
As I can see, the fix has been merged and a new release has been published. Is there already a plan to integrate the new library in the next release? |
The issue still exists. I have tested with the snapshot 3.2.0 S2604 after change to official Java HAP lib release. |
this is strange. there is not link whatsoever to the name of the item in the code. can you try 2-3 different names, ideally totally new and never used before? and do understand correctly, that for Colortemp is works as expected and you see it in home app? |
I have tried a lot of names, always the same. Only the name Colortemp is working. This Point is not linked to some channel. It was only for me to check what values I will get from HomeKit app and this works with the name Colortemp. I can select the colortemperature in the App and the Point shows the values (72 - 400). |
can you share screenshots of now working point? i will try to reproduce on my side |
very helpful, we are getting closer. but i have 2 more requests:
|
Thanks for help last time. It will work now with script to change from mired to kelvin. I have one more question. I have seen, that in ColorTemperatureCharacteristic.java the defaults for colortemp range are 50 and 400. Is it possible to change this values because I have red something at AccessoryWithColorTemperature.java. I have always worked with Homebridge and FHEM. There is the possibility to change with the mapping the Values, that HomeKit App shows only this values with the cycle. The most Lamps have Colortemp from lets say ~2000 to ~7000 K or ~500 to ~140. |
@Sirmike2 right, the configuration option of min/max value was missing. just added it and committed the change. i also will set the value to minValue is openHAB item is NULL. should reduce issues with new items with no value at the beginning. |
|
@Sirmike2 Can you please share your solution / script? |
In principial I created a second point for my lamp, for example lamp_colortemp_homekit. My first point name is lamp_colortemp. This one is linked to the colortemp channel of the real lamp. So what I did, was only a rule, if I change my colortemp at lamp_colortemp (Kelvin) it will convert to lamp_colortemp_homekit (Mired). 1 Kelvin = 1000000 / Mired |
on a oh3.1 snapshot Build #2135 i've installed two lamps: xiaomi mi desk lamp 1s and one Philips Hue. Both of them are able to adjust colortemperature and brightness, the hue is able to change color/hue additional. Both lamps are working well via OH Pages (switch on/brightness,/temperature/hue).
When integrating in Homekit all is working fine with setting metadata to tags lighting, lighting.OnState and lighting.brightness. Once you add tags lighting.colortemperature or lighting.hue, checking status in Homekit status of icons hang at refresh (Aktualisieren on german), if you press buttons of the items Homekit app close immediate. Restart of homekit app will close the app immediate again. Remove the mentioned tags everything works like before.
Addons are standard (Xiaomi mi and Hue) coming with OH3. Things/Items/Model are defined via UI.
log with log:set TRACE io.github.hapjava/log:tail io.github.hapjava gives tons of log info, it seems communication is working. I've snip the log and have save it into a local file. If it ie helpful i will share.
Not an important bug due to Homekit is more or less a toy ;)
edit: metatag coltemp didn't work before with other snapshot versions. i didn't take care about this, with the second lamp and the same issue occured i think it is reasonable now to have a look at it
The text was updated successfully, but these errors were encountered: