Stuck with MQTT reading data with Thing -> Item

You’ll have to add a transformationPattern:

Thing mqtt:topic:z2m_house "MQTT: Zigbee 2 MQTT Bridge House" (mqtt:broker:mosquitto) {
    Channels:
        Type contact : state "State" [
            stateTopic="z2m_house/bridge/state",
            transformationPattern="JSONPATH:$.state"
            off="offline",
            on="online"
        ]
}

And of course JSONPath Transformation has to be installed… :wink:

1 Like