ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
610 stars 140 forks source link

Empty client ID warning in openHAB Moquette #96

Closed Zeto-Git closed 4 years ago

Zeto-Git commented 4 years ago

Using the Openhab Embedded Moquette Broker i get the following error when initializing the Miflora MQTT Daemon Broker doesn't permit MQTT empty client ID. Username: mqtt, channel: I assume in comparison to e.g. Mosquito Moquette doesn't generate ClientIDs by itself, would it be possible to add a config in Miflora MQTT to define a ClientID? Default still could be none and let the Broker handle it

ThomDietrich commented 4 years ago

I recall this was fixed since then. Please comment if the error still persists

andrelung commented 4 years ago

Got the same problem using multiple instances (installed from source just yesterday):

2020-04-19 16:37:42.210 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x225719b8, L:/192.168.176.10:1883 - R:/192.168.176.79:41393]

2020-04-19 16:37:54.786 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x6157e454, L:/192.168.176.10:1883 - R:/192.168.176.76:44681]

2020-04-19 16:38:16.491 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xd05ad709, L:/192.168.176.10:1883 - R:/192.168.176.79:47551]

2020-04-19 16:38:28.325 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x102d7816, L:/192.168.176.10:1883 - R:/192.168.176.76:54517]

2020-04-19 16:38:55.354 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x937da882, L:/192.168.176.10:1883 - R:/192.168.176.79:45503]

2020-04-19 16:39:36.491 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x1ac7ca8d, L:/192.168.176.10:1883 - R:/192.168.176.79:55935]

2020-04-19 16:39:49.578 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xbea0c36c, L:/192.168.176.10:1883 - R:/192.168.176.76:34325]

2020-04-19 16:40:22.757 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xc60fb8f7, L:/192.168.176.10:1883 - R:/192.168.176.79:42265]

2020-04-19 16:40:58.579 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x5d460317, L:/192.168.176.10:1883 - R:/192.168.176.76:55533]

2020-04-19 16:41:05.836 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xb9f6be73, L:/192.168.176.10:1883 - R:/192.168.176.79:38225]

2020-04-19 16:41:51.249 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x3fd17f7e, L:/192.168.176.10:1883 - R:/192.168.176.76:39287]

2020-04-19 16:42:00.524 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x4bfdf4a4, L:/192.168.176.10:1883 - R:/192.168.176.79:47333]

2020-04-19 16:42:31.819 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x29354dcc, L:/192.168.176.10:1883 - R:/192.168.176.76:35821]

2020-04-19 16:42:41.895 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x397d3e8e, L:/192.168.176.10:1883 - R:/192.168.176.79:40795]

2020-04-19 16:43:40.503 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xde8e4e37, L:/192.168.176.10:1883 - R:/192.168.176.76:60221]

2020-04-19 16:43:44.072 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xb346a3da, L:/192.168.176.10:1883 - R:/192.168.176.79:55511]

2020-04-19 16:44:38.810 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0xc0c5ffd5, L:/192.168.176.10:1883 - R:/192.168.176.76:44677]

2020-04-19 16:44:46.853 [WARN ] [io.moquette.broker.MQTTConnection   ] - Broker doesn't permit MQTT empty client ID. Username: openhabian, channel: [id: 0x48dda618, L:/192.168.176.10:1883 - R:/192.168.176.79:39625]
ThomDietrich commented 4 years ago

Multiple instances?

According to http://www.eclipse.org/paho/clients/python/docs/ the client id is randomly generated but please try what happens when you define it manually.

andrelung commented 4 years ago

I switched from the internal broker to mosquitto and since then the error has vanished. Not much of a fix, but works for me.

Multiple instances = one in the living room, one in the kitchen, one in the hallway

ThomDietrich commented 4 years ago

The embedded Moquette always had that issue and I thought we solved it in openHAB or this daemon at some point. Can't quite remember.

If others find this issue and have similar problems, please shout!