OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

MQTT connects only ip address not homeassistant.local

Open fsadak opened this issue 6 months ago • 4 comments

My IR Remote device only connects to mqtt with ip address. When i input the homassistant.local address it couldn't connect to MQTT.

Firmware:

  • Version OpenBK7231N 1.18.122 Jun 20 2025 07:37:17
  • Device S06T-T-CB3S_V1.3 IR Blaster (FLY_S06)
  • Chip/model: BK7231N CB3S
  • Device config Pin 6: Btn on channel 1 Pin 7: IRRecv on channel 0 Pin 8: LED on channel 0 Pin 26: IRSend on channel 0

fsadak avatar Jun 25 '25 01:06 fsadak

Question, are you using a local dedicated DNS and this happens or not?

DeDaMrAzR avatar Jul 03 '25 00:07 DeDaMrAzR

Question, are you using a local dedicated DNS and this happens or not?

No, i am not using local dedicated DNS or something like...

fsadak avatar Jul 03 '25 01:07 fsadak

I'll troubleshoot this a bit more but I think that WINS (name resolution service usually provided from a router so your gateway and DNS are the same) is not supported and you will need a proper DNS in your local network for this to work.

Will report my findings here, standby.

DeDaMrAzR avatar Jul 03 '25 21:07 DeDaMrAzR

BK7231N module and local "manual" DNS on a mikrotik router:

Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic DHT_test/2/get
Info:MQTT:MQTT has pending reconnect in 1
Info:MQTT:Channel has changed! Publishing 2581 to channel 3 
Info:MQTT:Publishing val 2581 to DHT_test/3/get retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic DHT_test/3/get
Info:SENSOR:DS1820[14] - Starting conversion
Info:MAIN:Time 87781, idle 174633/s, free 59120, MQTT 1(2), bWifi 1, secondsWithNoPing 87719, socks 2/38 
Info:MQTT:MQTT has pending reconnect in 0
Info:MQTT:MQTT will now do a forced reconnect
Info:SENSOR:DS1820[14] - Temp=25.81
Info:MAIN:Time 87782, idle 186482/s, free 59208, MQTT 1(2), bWifi 1, secondsWithNoPing 87720, socks 2/38 
Info:MAIN:Time 87783, idle 183262/s, free 59208, MQTT 0(2), bWifi 1, secondsWithNoPing 87721, socks 2/38 
Info:SENSOR:DHT start, pin is 7
Info:MAIN:Time 87784, idle 188193/s, free 59208, MQTT 0(2), bWifi 1, secondsWithNoPing 87722, socks 2/38 
Info:MQTT:mqtt_userName dedamraz
mqtt_pass ********
mqtt_clientID DHT_test
mqtt_host ha.local:1883
Info:MAIN:Time 87785, idle 192040/s, free 59120, MQTT 0(3), bWifi 1, secondsWithNoPing 87723, socks 2/38 
Info:MQTT:mqtt_connection_cb: Successfully connected
Info:MQTT:mqtt_subscribed to DHT_test/+/set
Info:MQTT:mqtt_subscribed to DHT_test/+/set
Info:MQTT:mqtt_subscribed to cmnd/DHT_test/+
Info:MQTT:mqtt_subscribed to cmnd/DHT_test/+
Info:MQTT:mqtt_subscribed to DHT_test/+/get
Info:MQTT:mqtt_subscribed to homeassistant/+
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic homeassistant/status
Info:MQTT:HA status - online
Info:MQTT:Publishing val DHT_test to DHT_test/host retain=0

BL602 module, test on same router:

Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic BL602_test_new/4/get
Info:MQTT:MQTT has pending reconnect in 2
Info:MAIN:Time 335438, idle 0/s, free 91480, MQTT 1(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:MQTT:MQTT has pending reconnect in 1
Info:MAIN:Time 335439, idle 0/s, free 91480, MQTT 1(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:SENSOR:DHT start, pin is 12
Info:MQTT:MQTT has pending reconnect in 0
Info:MQTT:MQTT will now do a forced reconnect
Info:MAIN:Time 335440, idle 0/s, free 91472, MQTT 1(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:MAIN:Time 335441, idle 0/s, free 91480, MQTT 0(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:MAIN:Time 335442, idle 0/s, free 91480, MQTT 0(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:SENSOR:DHT start, pin is 12
Info:SENSOR:DHT timeout waiting for pulse.
Info:MQTT:mqtt_userName dedamraz
mqtt_pass ********
mqtt_clientID BL602_test_new
mqtt_host ha.local:1883
Info:MQTT:mqtt_host ha.local is being resolved by gethostbyname
Info:MAIN:Time 335443, idle 0/s, free 91480, MQTT 0(47), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:MQTT:mqtt_host ha.local resolution SUCCESS
Info:MAIN:Time 335444, idle 0/s, free 91480, MQTT 0(48), bWifi 1, secondsWithNoPing -1, socks 2/21 
Info:MQTT:mqtt_connection_cb: Successfully connected
Info:MQTT:mqtt_subscribed to BL602_test_new/+/set
Info:MQTT:mqtt_subscribed to BL602_test_new/+/set
Info:MQTT:mqtt_subscribed to cmnd/BL602_test_new/+
Info:MQTT:mqtt_subscribed to cmnd/BL602_test_new/+
Info:MQTT:mqtt_subscribed to BL602_test_new/+/get
Info:MQTT:mqtt_subscribed to homeassistant/+
Info:MQTT:Publishing val BL602_test_new to BL602_test_new/host retain=0
Info:MAIN:Time 335445, idle 0/s, free 79696, MQTT 1(48), bWifi 1, secondsWithNoPing -1, socks 3/21 
Info:SENSOR:DHT start, pin is 12
Info:SENSOR:DHT timeout waiting for pulse.
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic homeassistant/status
Info:MQTT:HA status - online
Info:MQTT:Publishing val BL602_test_new to BL602_test_new/host retain=0
Info:SENSOR:DS1820[4] - Starting conversion
Info:MAIN:Time 335446, idle 0/s, free 79696, MQTT 1(48), bWifi 1, secondsWithNoPing -1, socks 3/21 
Info:MQTT:Publishing val OpenBL602 1.18.178 Sep 23 2025 22:45:00 to BL602_test_new/build retain=0

BL running on 1.18.178 and BK7231N running on 1.18.181, can't test a non dedicated DNS (or WINS) server atm.

DeDaMrAzR avatar Sep 29 '25 20:09 DeDaMrAzR