Hello everyone,
I’m a beginner in this field, and I’ve recently updated my smart relay switch (it’s a module like this one: https://www.elektroda.com/rtvforum/topic3912748.html) to OpenBK7231 (OpenBeken). I followed this guide to flash it.
After configuring the Wi-Fi and everything else, I can access the device through its IP address. However, I’m having trouble connecting it to the MQTT broker in Home Assistant.
I’ve double-checked the MQTT settings: username, password, and port are all configured correctly, but it still won’t connect.
Could this be a problem with my router, or does it not play a role in this communication?
Thanks in advance for your help!
AI: Could you provide any error messages or specific behavior you observe when the device attempts to connect to the MQTT broker?
Info:GEN:dhcp=0 ip=192.168.1.135 gate=192.168.1.1 mask=255.255.255.0 mac=b8:06:0d:e0:e0:3d
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-35,ssid=MIWIFI_YppT-EXT,bssid=0c:0e:76:98:b0:5f,channel=2,cipher_type:CCMP
Info:MAIN:Time 331, idle 183931/s, free 74904, MQTT 0(20), bWifi 1, secondsWithNoPing 261, socks 2/38
Info:MAIN:Time 332, idle 192015/s, free 74904, MQTT 0(20), bWifi 1, secondsWithNoPing 262, socks 2/38
Info:MQTT:mqtt_userName homeassistant
mqtt_pass __**password_not_changed**__
mqtt_clientID SWITCH_RELAY
mqtt_host 192.168.1.131:1883
Info:MAIN:Time 333, idle 187124/s, free 74816, MQTT 0(21), bWifi 1, secondsWithNoPing 263, socks 2/38
Info:MQTT:mqtt_connection_cb: Disconnected, reason: 5(Refused not authorized)
Info:MAIN:Time 334, idle 184062/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 264, socks 2/38
Info:MAIN:Time 335, idle 183634/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 265, socks 2/38
Info:MAIN:Time 336, idle 188894/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 266, socks 2/38
Info:MAIN:Time 337, idle 188407/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 267, socks 2/38
Info:MAIN:Time 338, idle 188393/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 268, socks 2/38
Info:MAIN:Time 339, idle 189418/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 269, socks 2/38
Info:MAIN:Time 340, idle 197257/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 270, socks 2/38
Info:GEN:dhcp=0 ip=192.168.1.135 gate=192.168.1.1 mask=255.255.255.0 mac=b8:06:0d:e0:e0:3d
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-34,ssid=MIWIFI_YppT-EXT,bssid=0c:0e:76:98:b0:5f,channel=2,cipher_type:CCMP
Info:MAIN:Time 341, idle 187298/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 271, socks 2/38
Info:MAIN:Time 342, idle 188309/s, free 74696, MQTT 0(21), bWifi 1, secondsWithNoPing 272, socks 3/38
Info:MAIN:Time 343, idle 189008/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 273, socks 2/38
Info:MAIN:Time 344, idle 186736/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 274, socks 2/38
Info:MAIN:Time 345, idle 190196/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 275, socks 2/38
Info:MAIN:Time 346, idle 190137/s, free 74696, MQTT 0(21), bWifi 1, secondsWithNoPing 276, socks 2/38
Info:MAIN:Time 347, idle 189986/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 277, socks 2/38
Info:MAIN:Time 348, idle 191071/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 278, socks 2/38
Info:MQTT:mqtt_userName homeassistant
mqtt_pass __**password_not_changed**__
mqtt_clientID SWITCH_RELAY
mqtt_host 192.168.1.131:1883
Info:MAIN:Time 349, idle 190585/s, free 74824, MQTT 0(22), bWifi 1, secondsWithNoPing 279, socks 2/38
Info:MQTT:mqtt_connection_cb: Disconnected, reason: 5(Refused not authorized)
Info:MAIN:Time 350, idle 181841/s, free 74912, MQTT 0(22), bWifi 1, secondsWithNoPing 280, socks 2/38
AI: Can you share details about your MQTT broker configuration in Home Assistant, such as the broker address and any specific settings you have applied?
Configuration of HOME ASSISTENTE:
broker name: core-mosquitto
port: 1883
user: homeassistant
password: *****************
Configuration device:
host: same ip to access to home assistant
port: 1883
user: homeassistant
password: *****************
I’m a beginner in this field, and I’ve recently updated my smart relay switch (it’s a module like this one: https://www.elektroda.com/rtvforum/topic3912748.html) to OpenBK7231 (OpenBeken). I followed this guide to flash it.
After configuring the Wi-Fi and everything else, I can access the device through its IP address. However, I’m having trouble connecting it to the MQTT broker in Home Assistant.
I’ve double-checked the MQTT settings: username, password, and port are all configured correctly, but it still won’t connect.
Could this be a problem with my router, or does it not play a role in this communication?
Thanks in advance for your help!

AI: Could you provide any error messages or specific behavior you observe when the device attempts to connect to the MQTT broker?
Info:GEN:dhcp=0 ip=192.168.1.135 gate=192.168.1.1 mask=255.255.255.0 mac=b8:06:0d:e0:e0:3d
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-35,ssid=MIWIFI_YppT-EXT,bssid=0c:0e:76:98:b0:5f,channel=2,cipher_type:CCMP
Info:MAIN:Time 331, idle 183931/s, free 74904, MQTT 0(20), bWifi 1, secondsWithNoPing 261, socks 2/38
Info:MAIN:Time 332, idle 192015/s, free 74904, MQTT 0(20), bWifi 1, secondsWithNoPing 262, socks 2/38
Info:MQTT:mqtt_userName homeassistant
mqtt_pass __**password_not_changed**__
mqtt_clientID SWITCH_RELAY
mqtt_host 192.168.1.131:1883
Info:MAIN:Time 333, idle 187124/s, free 74816, MQTT 0(21), bWifi 1, secondsWithNoPing 263, socks 2/38
Info:MQTT:mqtt_connection_cb: Disconnected, reason: 5(Refused not authorized)
Info:MAIN:Time 334, idle 184062/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 264, socks 2/38
Info:MAIN:Time 335, idle 183634/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 265, socks 2/38
Info:MAIN:Time 336, idle 188894/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 266, socks 2/38
Info:MAIN:Time 337, idle 188407/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 267, socks 2/38
Info:MAIN:Time 338, idle 188393/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 268, socks 2/38
Info:MAIN:Time 339, idle 189418/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 269, socks 2/38
Info:MAIN:Time 340, idle 197257/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 270, socks 2/38
Info:GEN:dhcp=0 ip=192.168.1.135 gate=192.168.1.1 mask=255.255.255.0 mac=b8:06:0d:e0:e0:3d
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-34,ssid=MIWIFI_YppT-EXT,bssid=0c:0e:76:98:b0:5f,channel=2,cipher_type:CCMP
Info:MAIN:Time 341, idle 187298/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 271, socks 2/38
Info:MAIN:Time 342, idle 188309/s, free 74696, MQTT 0(21), bWifi 1, secondsWithNoPing 272, socks 3/38
Info:MAIN:Time 343, idle 189008/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 273, socks 2/38
Info:MAIN:Time 344, idle 186736/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 274, socks 2/38
Info:MAIN:Time 345, idle 190196/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 275, socks 2/38
Info:MAIN:Time 346, idle 190137/s, free 74696, MQTT 0(21), bWifi 1, secondsWithNoPing 276, socks 2/38
Info:MAIN:Time 347, idle 189986/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 277, socks 2/38
Info:MAIN:Time 348, idle 191071/s, free 74904, MQTT 0(21), bWifi 1, secondsWithNoPing 278, socks 2/38
Info:MQTT:mqtt_userName homeassistant
mqtt_pass __**password_not_changed**__
mqtt_clientID SWITCH_RELAY
mqtt_host 192.168.1.131:1883
Info:MAIN:Time 349, idle 190585/s, free 74824, MQTT 0(22), bWifi 1, secondsWithNoPing 279, socks 2/38
Info:MQTT:mqtt_connection_cb: Disconnected, reason: 5(Refused not authorized)
Info:MAIN:Time 350, idle 181841/s, free 74912, MQTT 0(22), bWifi 1, secondsWithNoPing 280, socks 2/38
AI: Can you share details about your MQTT broker configuration in Home Assistant, such as the broker address and any specific settings you have applied?
Configuration of HOME ASSISTENTE:
broker name: core-mosquitto
port: 1883
user: homeassistant
password: *****************
Configuration device:
host: same ip to access to home assistant
port: 1883
user: homeassistant
password: *****************