Fabian-Schmidt / esphome-truma_inetbox

ESPHome component to remote control Truma CP Plus Heater
GNU General Public License v3.0
37 stars 7 forks source link

Problems adding MQTT Broker #16

Open ubarni opened 1 year ago

ubarni commented 1 year ago

Hi, i successfully connected my ESP to my Truma and was able to control it from the Web UI. Now i wanted to add anything to my MQTT Server. I use this in several ESPHOME projects and it worked out of the box:

mqtt:
  broker: !secret mqtt_url -> "192.168.178.11"
  port: !secret mqtt_port -> "1883"
  discovery: false
  topic_prefix: service/truma/set

But what i got in the Web UI Console is:

19:07:25    [D] [mqtt:183]  Resolving MQTT broker IP address...
19:07:25    [D] [mqtt:216]  Resolved broker IP address to 185.198.140.245
19:07:25    [I] [mqtt:246]  Connecting to MQTT...
19:07:43    [W] [mqtt:335]  MQTT Disconnected: TCP disconnected.
19:07:43    [I] [mqtt:246]  Connecting to MQTT...
19:08:02    [W] [mqtt:335]  MQTT Disconnected: TCP disconnected.
19:08:02    [I] [mqtt:246]  Connecting to MQTT...
19:08:12    [E] [mqtt:370]  Can't connect to MQTT... Restarting...
19:08:12    [I] [app:127]   Forcing a reboot...

Is there a way to configure the MQTT Broker?

Regards... Uwe

ubarni commented 1 year ago

What i want to achieve is to control my Truma in my Camper Van from my Home Assistant at home. So i have to send the data from my local Camper Van WiFi to my MQTT Server at home.

Fabian-Schmidt commented 1 year ago

I will look at this issue in a couple of days. Need to setup a test so I can reproduce this issue.

Fabian-Schmidt commented 1 year ago

Hi, I finally found some time and installed an MQTT broker on my OpenWRT router to test. So far it is working for me without any issues. Can you ensure there is no network related issue?

dougle03 commented 8 months ago

What i want to achieve is to control my Truma in my Camper Van from my Home Assistant at home. So i have to send the data from my local Camper Van WiFi to my MQTT Server at home.

Did you get this sorted? The MQTT element in ESPHome is independent of the Truma components. From your logs the ESP is unable to find your MQTT server. Ensure you are able to reach your MQTT from the local wifi network your ESP is connected to. Failing that, try posting your MQQT issue on the main ESPHome page or the FB group