[OH3.1 M1] espmilight stay INITIALIZING

I try to set debug but I’m not sure it works because when i make bundle:list I don’t see any espmilighthub binding :

openhab> log:set TRACE org.openhab.binding.espmilighthub

discovery working fine (it show me all my bulbs)

[INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:rgbw:mosquitto:0xB58D2' changed from UNINITIALIZED to INITIALIZING

So you have a thing. Have you setup any channels in the thing?

With an item linked to a channel, same problem

Full Log :

10:16:51.071 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'mqtt.lan' with clientid db3212f8-cd0a-41d7-8aa7-597946ea9e7a
10:16:51.080 [TRACE] [ng.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.homeassistant.internal.discovery.HomeAssistantDiscovery@2ab0c6fe to discovery topic homeassistant/# on broker mqtt:broker:mosquitto
10:16:51.080 [TRACE] [ng.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.espmilighthub.internal.discovery.EspMilightHubDiscoveryService@4f062e62 to discovery topic milight/states/# on broker mqtt:broker:mosquitto
10:16:51.081 [TRACE] [ng.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.homie.internal.discovery.Homie300Discovery@6ba89a3b to discovery topic +/+/$homie on broker mqtt:broker:mosquitto
10:16:51.093 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0xB58D2' to inbox.
10:16:51.093 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0xB58D2' has been added.
10:16:51.096 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0xB58D3' to inbox.
10:16:51.098 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:homie300:mosquitto:relais' to inbox.
10:16:51.098 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0xB58D3' has been added.
10:16:51.099 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:mosquitto' changed from OFFLINE to ONLINE
10:16:51.100 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:homie300:mosquitto:relais' has been added.
10:16:51.099 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:homie300:mosquitto:mcz' to inbox.
10:16:51.101 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:homie300:mosquitto:mcz' has been added.
10:16:51.101 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0xB58D1' to inbox.
10:16:51.101 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0xB58D1' has been added.
10:16:51.102 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0xB58D4' to inbox.
10:16:51.102 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0xB58D4' has been added.
10:16:51.102 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0xB58D3' to inbox.
10:16:51.103 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0xB58D3' has been added.
10:16:51.104 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0xB58D1' to inbox.
10:16:51.104 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0xB58D1' has been added.
10:16:51.105 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0xB58D2' to inbox.
10:16:51.106 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0xB58D2' has been added.
10:16:51.106 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0xB58D4' to inbox.
10:16:51.107 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0xB58D4' has been added.
10:16:51.107 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0x12BD1' to inbox.
10:16:51.108 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0x12BD1' has been added.
10:16:51.109 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0x12BD2' to inbox.
10:16:51.109 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0x12BD2' has been added.
10:16:51.110 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0x12BD3' to inbox.
10:16:51.110 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0x12BD3' has been added.
10:16:51.111 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0x12BD4' to inbox.
10:16:51.111 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0x12BD4' has been added.
10:16:51.112 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0x12BD4' to inbox.
10:16:51.112 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0x12BD4' has been added.
10:16:51.113 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0x12BD2' has been added.
10:16:51.112 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0x12BD2' to inbox.
10:16:51.114 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0x12BD1' to inbox.
10:16:51.114 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0x12BD1' has been added.
10:16:51.115 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgbw:mosquitto:0x12BD3' to inbox.
10:16:51.115 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0x12BD3' has been added.
10:16:51.116 [INFO ] [ig.discovery.internal.PersistentInbox] - Added new thing 'mqtt:rgb_cct:mosquitto:0x15151' to inbox.
10:16:51.116 [INFO ] [openhab.event.InboxAddedEvent        ] - Discovery Result with UID 'mqtt:rgb_cct:mosquitto:0x15151' has been added.
10:17:28.998 [INFO ] [openhab.event.InboxRemovedEvent      ] - Discovery Result with UID 'mqtt:rgbw:mosquitto:0xB58D2' has been removed.
10:17:28.999 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:rgbw:mosquitto:0xB58D2' changed from UNINITIALIZED to INITIALIZING
11:02:09.312 [TRACE] [c.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:rgbw:mosquitto:0xB58D2:colour
11:02:09.313 [TRACE] [c.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:rgbw:mosquitto:0xB58D2:colour
11:02:09.313 [TRACE] [c.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:rgbw:mosquitto:0xB58D2:colour
11:02:09.413 [TRACE] [c.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:rgbw:mosquitto:0xB58D2:colour

The binding is now seen as an extension of the mqtt binding and not a standalone binding, so this may work.

log:set TRACE org.openhab.binding.mqtt.espmilighthub

It is also why it does not show up in an installed binding list as it is actually seen as the mqtt binding.
If you have troubles, try uninstalling the mqtt binding and reinstalling it.

1 Like

Nothing more on logs after setting log to TRACE and after reinstalling mqtt binding, it always set to "
INITIALIZING"

@matt1 , can you give me some advice ? use snapshots ?

After I have had mine working it has started doing the same thing, I need time to look into why.

I have narrowed it down to the call getBridgeUID() is returning null for some reason.

EDIT: @furax54 I have a possible fix which is working for me here. Download and extract the jar to your addons folder, then you MUST reboot openHAB for it to connect and come online.

Index of /openhab/espmilighthub/ (pcmus.com)

PR made on github here

[espmilighthub] Fix things stay initializing by Skinah · Pull Request #10315 · openhab/openhab-addons (github.com)

1 Like

thnak you @matt1 it works fine now.

Hi together,
I have the same problem. I tried to put the jar file to the addon folder. But it still remains the same.

Interesting is that I have doubled entries:

I think that somehow the mapping is not correct.
Do you have any ideas how to solve it until it´s merged?

Thanks

Did u restart openhab? For some reason that was needed. Since it is already merged it will be in the daily snapshots already.

If restart does not solve the double ups search forum for how to clean the cache.

1 Like

Yes, I did the restart. Finally the cleanup of the cache and tmp helped.
@matt1 Thanks for the great support.