Hi,
I spend a lot of time trying to configure dimming the Ikea Tradfri Driver 30W.
OH3 is running on RPI4. Zigbee2mqtt is used to communicate with this device.
I can control the driver using Zigbe2mqtt GUI (state and brightness).
Using OH3 I can control only the state (on/off).
Take into account though that i am not using json transformation as zigbee2mqtt also supports normal numbers with their advanced mode, no need for json anymore.
I’ve added a stateDescription to the item like You but nothing has changed, still, 50% are sent as 0.5.
zigbee2mqtt/IkeaDriver01/brightness doesn’t work as a state topic. I used MQTT spy to sniff if there are values propagated. There were no values using this topic.
Take into account though, as mentioned, that I am not using any JSONPATH transform as I am using zigbee2mqtt’s experimental feature of attribute output:
experimental:
output: attribute
Using this, there is no need for json anymore.
Based on your IKEA item you got indeed only zigbee2mqtt/FRIENDLY_NAME/set and not zigbee2mqtt/IkeaDriver01/set/brightness.
brightness: To control the brightness publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"brightness": VALUE} where VALUE is a number between 0 and 254. To read the
brightness send a message to zigbee2mqtt/FRIENDLY_NAME/get with payload {"brightness": ""}.