Logger usage - how to track which exactly item causes the error?

Hi all

Got an error in configuration, which causes log to produce the warning:

==> /var/log/openhab/openhab.log <==
2021-05-15 00:57:15.992 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '{"linkquality":60,"state":"OFF"}' not supported by type 'OnOffValue': No enum constant org.openhab.core.library.types.OnOffType.{"linkquality":60,"state":"OFF"}

This line makes no hint, which item/channel is a culprit.
Is there a possibility to make log post info of which exactly item/channel produces this warning? I suspect this is very simple, but I cannot find how.

P.S. This time I tracked the error source item by disabling all things, then enabling them one by one, until warning reappeared

It tells you it is MQTT channel

from this you can workout that it is a switch type channel

and the offending MQTT payload offers further clues.
Maybe you have another channel looking at link quality, a matching value will tell you which Thing to look at for partner channels.
Or you might use a tool like MQTT.fx toidentify the source and topic.

Or use the bindings DEBUG logging.

Thank you for your reply, rossko57
If I understood you right, we have no available straightforward logger mechanism to see the named path Thing-Channel-Item for errors in log file at the moment?


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.