FHEM Forum

FHEM - Hausautomations-Systeme => MQTT => Thema gestartet von: olivierbardot am 08 Februar 2023, 20:54:58

Titel: HiveMQ - FHEM
Beitrag von: olivierbardot am 08 Februar 2023, 20:54:58
Hello

I used HiveMQ for some applications and reasons, for example external MQTT Server to which I can connect IOT devices that I don't want to see on my local network.

To retreive data from HiveMQ cluster, I use Paho (python mqtt client) and ssh transfer data to FHEM.
I didn't try to use MQTT2 FHEM tools for this job because it seems that Hive used MQTT protocol version 5 which was not compatible with  MQTT2_SERVER (thread from this forum date 2020).

My solution works well but seems to me a little bit complicated.

Does anyone here have a better solution to integrate Hive cluster services to FHEM ?

Thanks for your attention
Olivier
Titel: Antw:HiveMQ - FHEM
Beitrag von: rudolfkoenig am 09 Februar 2023, 08:11:36
It is still true, that both MQTT2_SERVER and MQTT2_CLIENT are not implementing protocol version 5, but I would be surprized, if HiveMQ would not be able to support version 3.1.1 clients.
Titel: Antw:HiveMQ - FHEM
Beitrag von: Christoph Morrison am 09 Februar 2023, 11:27:20
Zitat von: olivierbardot am 08 Februar 2023, 20:54:58
I didn't try to use MQTT2 FHEM tools for this job because it seems that Hive used MQTT protocol version 5 which was not compatible with  MQTT2_SERVER (thread from this forum date 2020).

HiveMQ currently supports MQTT 3.1, 3.1.1 and MQTT 5. Please try MQTT2_CLIENT.
Titel: Antw:HiveMQ - FHEM
Beitrag von: olivierbardot am 09 Februar 2023, 17:05:46
@rudolf
@christoph

Thanks for your answer !
I should have tried with MQTT2_CLIENT so ...

Best regards
Olivier
Titel: Aw: HiveMQ - FHEM
Beitrag von: olivierbardot am 20 März 2023, 15:20:15

MQTT2_CLIENT works fine with HiveMQ broker

It seems that :

- MQTT protocol version (3.1.1) (attr mqttVersion)
- SSL (attr SSL)

have to be specified for the stability of the opened connection