Thanks a lot!
When the Mosquitto receive data, I log this error:
17:08:23.806 [ERROR] [.mqtt.internal.MqttMessageSubscriber] - Error processing MQTT message.
org.openhab.core.transform.TransformationException: An error occured while executing script.
at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:63)[177:org.openhab.core.compat1x:2.0.0.201701071314]
at org.openhab.binding.mqtt.internal.MqttMessageSubscriber.processMessage(MqttMessageSubscriber.java:138)[176:org.openhab.binding.mqtt:1.9.0.201701070211]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.messageArrived(MqttBrokerConnection.java:552)[178:org.openhab.io.transport.mqtt:1.9.0.201701070211]
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:336)[178:org.openhab.io.transport.mqtt:1.9.0.201701070211]
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:148)[178:org.openhab.io.transport.mqtt:1.9.0.201701070211]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_111]
If I change the Item from Number to String and I change JS(…) with ‘default’, the Item value is the JSON, so I think there isn’t problem with Mosquitto.
Even if I change the function with only “return 1”, I log the same error.