logo elektroda
logo elektroda
X
logo elektroda

Configuration of the MQTT server in Tasmota on ESP32: Failed connection to Home Assistant

008 1281 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19785657
    008
    Level 7  
    Has anyone had to deal with the Tasmota soft and can explain to me how to configure the MQTT server? When I try to connect to any client for some unknown reason it rejects my connection.

    The IP address where the ESP32 is running is: 192.168.0.111

    I entered the following data in the MQTT tab and saved:

    Host: 192.168.0.111
    Login: user
    Password: 12345

    And here's the first strange thing I noticed - even though I entered a 5-character password (12345) the "Password" field suggests that the password is 4 characters (4 asterisks).

    When I try to connect to the server from Home Assistant using the data I entered I get the error: "Failed to connect".

    An attempt to connect with the MQTT Explorer program ends similarly.

    In the Configure Other tab: "MQTT enable" - enabled.

    A failed connection attempt is also noted in the console.

    Ultimately, the ESP32 is to be used as a gateway, to collect data from the BLE sensors, which it then wants to pass on over MQTT to Homebridge, so any tips on here type of Homebridge plug-in welcome. (I've already covered the first stage and the data from the sensors via BLE flows to the ESP32, but what good is that if the MQTT server doesn't really work).

    Configuration of the MQTT server in Tasmota on ESP32: Failed connection to Home Assistant .
    Configuration of the MQTT server in Tasmota on ESP32: Failed connection to Home Assistant .
    Configuration of the MQTT server in Tasmota on ESP32: Failed connection to Home Assistant .
  • ADVERTISEMENT
  • #2 19786203
    sSmall
    Level 21  
    Hello, the fact that Tasmota suggests a 4 character password is normal.
    The Home Assistant IP should be entered as the Host and not the ESP IP.
  • #3 19787217
    008
    Level 7  
    I already know everything. I was sure that Tasmota was doing the server I was trying to connect to and in the meantime it turns out to be the client. I put the MQTT broker on the raspberry and now everything connects. I plan to hook up 3 BLE sensors to the ESP32 but I have my doubts about being able to sort the data and separate the themes. From what I've tentatively checked it'll be easier to figure it out on ESPHome.
ADVERTISEMENT