These all appear to come from MQTT, in particular home assistant discovered Things. Have these errors started since upgrading to 3.2? Have you tried deleting the Things and letting them be rediscovered? Is this a new device added to your system?
Did a foolish mistake, vs deleting for only MQTT Things ran command âthings clearâ from CLI. obviously all configurations got deleted. Scratching my head on how to recover (i mean the connection / configuration details sitting underneath) for following:
Also getting following type of errors for all Things rediscovered via MQTT Broker - like
Could not create channel âxxxâ, because channel type âmqtt:yyyyâ could not be found**.
*Could not create channels for channel group âzzzâ for thing type
Please advise required step to resolve.
2022-01-04 11:38:13.399 [WARN ] [re.thing.internal.ThingFactoryHelper] - **Could not create channel** 'ESPswitchdining3#switch', **because channel type 'mqtt:ESPswitchdining3_switch' could not be found**.
2022-01-04 11:38:13.403 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'ESPswitchdining_5F3#switch', because channel type 'mqtt:ESPswitchdining_5F3_switch' could not be found.
2022-01-04 11:38:13.407 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'ESPswitchdining_5F2#switch', because channel type 'mqtt:ESPswitchdining_5F2_switch' could not be found.
2022-01-04 11:38:13.411 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'ESPswitchdining_5F1#switch', because channel type 'mqtt:ESPswitchdining_5F1_switch' could not be found.
2022-01-04 11:38:13.415 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'mqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9', because channel group type 'mqtt:ESPswitchdining3' could not be found.
2022-01-04 11:38:13.451 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'ESPswitchdining_5F3' for thing type 'mqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9', because channel group type 'mqtt:ESPswitchdining_5F3' could not be found.
2022-01-04 11:38:13.454 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'ESPswitchdining_5F2' for thing type 'mqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9', because channel group type 'mqtt:ESPswitchdining_5F2' could not be found.
2022-01-04 11:38:13.457 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'ESPswitchdining_5F1' for thing type 'mqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9', because channel group type 'mqtt:ESPswitchdining_5F1' could not be found.
2022-01-04 11:38:13.459 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'ESPswitchdining1' for thing type 'mqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9', because channel group type 'mqtt:ESPswitchdining1' could not be found.
In $OH-USERDATA/jsondb/backup there are automatic backups of the things and other configs.
The errors are probably because while you deleted all the Things, the Links to the Items still exist. You need to restore your Things from the backup or delete all the links that point to Things that no longer exist.
2022-01-04 11:38:13.399 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel âESPswitchdining3#switchâ, because channel type âmqtt:ESPswitchdining3_switchâ could not be found.
2022-01-04 11:38:13.403 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel âESPswitchdining_5F3#switchâ, because channel type âmqtt:ESPswitchdining_5F3_switchâ could not be found.
2022-01-04 11:38:13.407 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel âESPswitchdining_5F2#switchâ, because channel type âmqtt:ESPswitchdining_5F2_switchâ could not be found.
2022-01-04 11:38:13.411 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel âESPswitchdining_5F1#switchâ, because channel type âmqtt:ESPswitchdining_5F1_switchâ could not be found.
2022-01-04 11:38:13.415 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel âmqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9â, because channel group type âmqtt:ESPswitchdining3â could not be found.
2022-01-04 11:38:13.451 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group âESPswitchdining_5F3â for thing type âmqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9â, because channel group type âmqtt:ESPswitchdining_5F3â could not be found.
2022-01-04 11:38:13.454 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group âESPswitchdining_5F2â for thing type âmqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9â, because channel group type âmqtt:ESPswitchdining_5F2â could not be found.
2022-01-04 11:38:13.457 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group âESPswitchdining_5F1â for thing type âmqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9â, because channel group type âmqtt:ESPswitchdining_5F1â could not be found.
2022-01-04 11:38:13.459 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group âESPswitchdining1â for thing type âmqtt:homeassistant_840d8e494ce9:myMQTTBroker:840d8e494ce9â, because channel group type âmqtt:ESPswitchdining1â could not be found.
Deleted things & links, and set them up again. Also, did a cache purge from cli. Steps reduced number of duplicates but did not eliminate. Finally purged mosquitto mqtt db, that seems to have the desired effect, no duplicates (yet).
Have also increased log level on mqtt bindings to DEBUG to get more data in case issue re-surfaces.
And the duplicates are back , not as many as before , but still back
2022-01-08 18:23:43.440 [INFO ] [org.openhab.core.model.script.Power ] - Mains FailedOFF , OFF
2022-01-08 18:23:44.218 [INFO ] [rg.openhab.core.model.script.Battery] - Battery Flag status 20% OFF , OFF
2022-01-08 18:23:44.243 [WARN ] [gram.internal.action.TelegramActions] - Exception occured whilst sending message:java.io.InterruptedIOException: interrupted
2022-01-08 18:23:50.459 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.IllegalArgumentException: Duplicate channels mqtt:homeassistant_ecfabc9bead9:myMQTTBroker:ecfabc9bead9:ESPswitchdining_5Fplant_5Fstair_5Flight_5Fpir#switch
at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:152) ~[?:?]
at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:144) ~[?:?]
at org.openhab.core.thing.util.ThingHelper.addChannelsToThing(ThingHelper.java:105) ~[?:?]
at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:292) ~[?:?]
at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:1) ~[?:?]
at org.openhab.binding.mqtt.generic.tools.DelayedBatchProcessing.run(DelayedBatchProcessing.java:110) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2022-01-08 18:23:53.008 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.IllegalArgumentException: Duplicate channels mqtt:homeassistant_5ccf7f0dfaa0:myMQTTBroker:5ccf7f0dfaa0:ESPsensorbatterycharge#sensor
at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:152) ~[?:?]
at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:144) ~[?:?]
at org.openhab.core.thing.util.ThingHelper.addChannelsToThing(ThingHelper.java:105) ~[?:?]
at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:292) ~[?:?]
at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:1) ~[?:?]
at org.openhab.binding.mqtt.generic.tools.DelayedBatchProcessing.run(DelayedBatchProcessing.java:110) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
How do I debug this further ? in particular which log level can i increase to get information on which mqtt message is triggering this behaviour. Once that is known i maybe able to trace the root casue.
I donât care about the item. The error is occurring before we get to that point.
What is the Thing? Hook an MQTT clients up to your broker and look around at the topics there. It should be relatively obvious which topics correspond to that Thing and which topics correspond to that channel. MQTT Explorer is a good choice.