I have installed the MQTT binding and set it up in openhab.cfg as follows:
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
mqtt:skynet.url=tcp://10.0.0.165:1883
# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
mqtt:skynet.clientId=openHab
mqtt:skynet.retain=true
I get the right value here 09:12:58.762 [INFO ] [runtime.busevents :26 ] - LightLevel state updated to 94
But in the rules it seems like there is some XML code in the variable?! 09:12:04.797 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule 'MQTTLightLevel': The name '<XFeatureCallImplCustom> < <XNumberLiteralImpl>' cannot be resolved to an item or type.
If there is really nothing, double check if you have the correct binding installed: org.openhab.binding.mqtt-1.x.x.jar
and check for correct permissions.
Also make sure you have a mqtt broker installed, most here use mosquitto.
You should have the following log entries: