Hi there,
I have this issue with my Hue Color in Homekit. It works perfectly fine, I can dim it and change color with Siri. But the issue is, when I have it for example at 50%, and now I want it to dim to 10%, it goes to 100% first, and then 10%, also when I try to turn it off, it turns to 100% first and then turns off. Anybody has an idea how to prevent it to get the command ON at every change?
this is my Item:
Color HueRGBColor "Hue Color" (HueColor) {channel="mqtt:topic:2b21df199d:HueRGB:HueRGBColor", homekit="Lighting.OnState, Lighting.Hue, Lighting.Brightness, Lighting.Saturation", ga="Light" }
and this is my rule to send the brightness
rule "Hue RGB calc brightness"
when
Item HueRGBColor changed
then
var brightness = HueRGBColor.state.toString.split(',').get(2)
if(brightness == '0') {
HueRGBSwitch.sendCommand(OFF)
}
else {
HueRGBBrightness.sendCommand(Float::parseFloat(brightness))
}
end
the log looks like this:
2022-07-14 11:12:59.020 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HueRGBColor' predicted to become ON
2022-07-14 11:12:59.028 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HueRGBColor' predicted to become 0,33,24
2022-07-14 11:12:59.040 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HueRGBColor' changed from 0,33,53 to 0,33,100
2022-07-14 11:12:59.041 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HueRGBColor' changed from 0,33,100 to 0,33,24
Edit:
I figured out how to filter the ON commands with this:
{homekit="Lighting, Lighting.Brightness" [dimmerMode="filterOn"]}
So, now it does not send the ON command anymore, but it looks like it is still sending that command, I do not see that anymore in the logs, but the light still goes up to 100% for a short moment and then goes to the desired value.