logo elektroda
logo elektroda
X
logo elektroda

Using Hostname Instead of IP for MQTT Server in Home Assistant

tadeu1 489 3
ADVERTISEMENT
  • #1 21797935
    tadeu1
    Level 5  
    Posts: 80
    Help: 2
    Rate: 3
    Is it possible to configure hostname instead IP at the MQTT server?
    I tried my homeassistant.local and I can get connected (Tasmota it's ok).
    And if I put the IP it works.
  • ADVERTISEMENT
  • #2 21798145
    k45i89o98j66
    Level 39  
    Posts: 4652
    Help: 523
    Rate: 959
    Yes
    Example: host: mqtt.example.com, port: 1883
    Check your router, firewalls, ports, forwarding and antivirus for blocking
    .
  • ADVERTISEMENT
  • #3 21799356
    tadeu1
    Level 5  
    Posts: 80
    Help: 2
    Rate: 3
    >>21798145

    It's everything OK, the router, etc.
    The weird it's because I can ping homeassistant.local, tasmota uses it, and other MQTT stuff I have.
  • #4 21801034
    miegapele
    Level 16  
    Posts: 173
    Help: 15
    Rate: 29
    .local is usually mDNS which is not supported. Check you router, it should assign standard dns hostname to it. For example, OpenWrt assigns homeasistant and homeasistant.lan.
ADVERTISEMENT