Hey, i am experiencing a problem and find no way to solve it.
I am adding this Hue bulb via ZigBee2MQTT
Thing mqtt:topic:E27Birne_Aquarium_4 "Z2M: Licht Aquarium 4" (mqtt:broker:823098e4c9) [availabilityTopic="zigbee2mqtt/E27Birne_Aquarium_4/availability", payloadAvailable="online", payloadNotAvailable="offline", transformationPattern="JSONPATH:$.state"] {
Channels:
Type dimmer : brightness "Helligkeit" [stateTopic="zigbee2mqtt/E27Birne_Aquarium_4", commandTopic="zigbee2mqtt/E27Birne_Aquarium_4/set/brightness", transformationPattern="JSONPATH:$.brightness", min=0, max=254]
//Type color : color "Farbe" [stateTopic="zigbee2mqtt/E27Birne_Aquarium_4", commandTopic="zigbee2mqtt/E27Birne_Aquarium_4/set", formatBeforePublish="{\"color\":{\"h\":%s,\"s\":%s}, \"brightness\":%s}", colorMode="HSB"]
//Type color : color "Farbe" [stateTopic="zigbee2mqtt/E27Birne_Aquarium_4/color", commandTopic="zigbee2mqtt/E27Birne_Aquarium_4/set",formatBeforePublish="{\"color\": {\"rgb\": \"%s,%s,%s\"}}", colorMode="RGB"]
}
As you can see i uncommented 2 channels. The brightness channel works as expected, the color channels do not.
Type color : color "Farbe" [stateTopic="zigbee2mqtt/E27Birne_Aquarium_4", commandTopic="zigbee2mqtt/E27Birne_Aquarium_4/set", formatBeforePublish="{\"color\":{\"h\":%s,\"s\":%s}, \"brightness\":%s}", colorMode="HSB"]
works for this bulb. Unfortunately the B from HSB (brightness) has a maximal value of 100. the brightness needs a value between 0-254. When changing the color via a sitemaps Colorpicker, the maximum brightness it gets is 100 or 39% in total.
Type color : color "Farbe" [stateTopic="zigbee2mqtt/E27Birne_Aquarium_4/color", commandTopic="zigbee2mqtt/E27Birne_Aquarium_4/set",formatBeforePublish="{\"color\": {\"rgb\": \"%s,%s,%s\"}}", colorMode="RGB"]
works too, but does not transmit a brightness value at all… So its impossible for me to update the brightness via a Colorpicker in the sitemap.
I know, i can just slide the brightness channel up. But that seems like a unnecessary step i want to avoid.
Even for rules neither of these channels is good to work with.
Am i too dumb to use the channels correctly?