logo elektroda
logo elektroda
X
logo elektroda

OpenBecken MQTT Connection Issue with HiveMQ Cloud Configuration

no_cloud 336 2
ADVERTISEMENT
  • #1 21325138
    no_cloud
    Level 6  
    Hello, I want to use a mqtt broker external, my choice is hivemq.cloud
    The interface is simple and in 3 minutes, I have an account.
    I have tested publish by
    mosquitto_pub -h ####.s1.eu.hivemq.cloud -p 8883 -u user -P password -t iot/atelier -m 'Hello' wrote:

    and subscribe by
    mosquitto_sub -h ####.s1.eu.hivemq.cloud -p 8883 -u user -P password -t iot/atelier -v wrote:

    and it's correct, I have the messages by the web client of hivemq.cloud.

    But by openbecken with this configuration, I have no message.
    Info:MQTT:mqtt_host ####.s1.eu.hivemq.cloud is being resolved by gethostbyname Info:MQTT:mqtt_host ####.s1.eu.hivemq.cloud resolution SUCCESS Info:MQTT:mqtt_userName user mqtt_pass password mqtt_clientID iot wrote:

    Port; 1883
    Client Topic (Base Topic):iot
    Group Topic (Secondary Topic to only receive cmnds):atelier

    I don't understand, do you have an idea?

    AI: Can you provide any error messages or specific behavior you see when trying to receive messages with OpenBecken?
    no error in logs but disconnected in home dashboard
    AI: What version of OpenBecken are you using, and how is it configured in terms of authentication and network settings?
    last version
  • ADVERTISEMENT
  • Helpful post
    #2 21327682
    p.kaczmarek2
    Moderator Smart Home
    Are you really sure that you're following OBK topic names convention?
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/mqttTopics.md
    Secondary MQTT topic is not the string after first slash, it's an alternate name for MQTT topics to address devices in groups...

    Try doing publish from MQTT to OBK under:
    
    cmnd/OBK_DEV_NAME/COMMAND_TEXT
    

    Use command POWER, payload TOGGLE, it should toggle the relay, etc...
    Helpful post? Buy me a coffee.
  • #3 21337410
    no_cloud
    Level 6  
    Thanks for your help.
    I have a problem for understanding the mqtt engine of openbeken.
    I have made mqtt local by mosquitto and another with hivemq.
    Two accept any topic.

    I think OB has two types: publish and subscribe but after many tries, I don't understand that.
    I have read and searched many documentations (github, google...) or tuto but I don't find.

    Someone can help me?
ADVERTISEMENT