#Couldn't resolve IP address for 'core-mosquitto'!

1 messages · Page 1 of 1 (latest)

glacial fjord
#

Hey, today i tried to set up mqtt but i'm a bit at a loss what to use as broker address/host/ip/terminology

appdaemon on the same machine as home assistant happily conencts to mosquitto with core-mosquitto as host (2022-12-28 14:30:16.178353 INFO MQTT: Connected to Broker at URL core-mosquitto:1883 2022-12-28 14:30:16.631683 INFO AppDaemon: Got initial state from namespace mqtt 2022-12-28 14:30:16.632434 INFO MQTT: MQTT Plugin initialization complete)

but a device flashed with esphome and configured to the same address ( mqtt_ip: core-mosquitto) does not ([14:41:54][W][mqtt:141]: Couldn't resolve IP address for 'core-mosquitto'! [14:41:55][D][mqtt:117]: Resolving MQTT broker IP address...)

ive tested with a different device (my windows pc) to netcat to core-mosquitto, home assistant ip, different ports, but i cant figure out how to connect.

any pointers pretty please?

#

i think, from what few threads ive found, that mDNS isn't working (correctly), but im not sure how to test

quartz glade
#

core-mosquitto is a local name only

tight marsh
#

It's specific for the Docker stack

#

Use the IP of the computer running it

quartz glade
#

Use the machine’s IP address for the host in your esp config

tight marsh
#

And ensure that you've got a static DHCP lease for it (or you've set a fixed IP)

glacial fjord
tight marsh
#

Yes, and port 1883

quartz glade
#

But as an aside, why use mqtt on esphome?

glacial fjord
#

¯_(ツ)_/¯

#

honestly best asnwer i got hehe

chrome glacierBOT
glacial fjord
#

my other stuff is esphome as well so i figured it'd be nicely concatenated

tight marsh
#

There's a native integration for it, no MQTT required

quartz glade
glacial fjord
#

im at this step of nspanel as more abckground info

tight marsh
#

Configure your MQTT Server in Tasmota

#

Tasmota != ESPHome

glacial fjord
#

its a whole thing

#

meanwhile flashing completed

#
[14:47:07][D][mqtt:117]: Resolving MQTT broker IP address...```
tight marsh
#

Ah yes, so that's for AppDaemon and NSPanel, not HA

#

Try removing the port

glacial fjord
#

im 99% sure i've tried this ip before but flashing in progress

#

doesnt hurt to double try

tight marsh
#

If it doesn't work, install MQTT Explorer or your choice of MQTT client software on your computer and test the details there

glacial fjord
#

i uh

#

oh i cant send images

chrome glacierBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

glacial fjord
#
[14:49:06][D][sensor:127]: 'ntc_source': Sending state 1.71700 V with 2 decimals of accuracy
[14:49:06][D][resistance:039]: 'resistance_sensor' - Resistance 12148.1Ω
[14:49:06][D][sensor:127]: 'resistance_sensor': Sending state 12148.07422 Ω with 1 decimals of accuracy
[14:49:06][D][ntc:026]: 'NSPanel Temperature' - Temperature: 20.7°C
[14:49:06][D][sensor:127]: 'NSPanel Temperature': Sending state 20.68430 °C with 1 decimals of accuracy
[14:49:08][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[14:49:08][I][mqtt:176]: Connecting to MQTT...
[14:49:16][D][sensor:127]: 'ntc_source': Sending state 1.72200 V with 2 decimals of accuracy
[14:49:16][D][resistance:039]: 'resistance_sensor' - Resistance 12222.1Ω
[14:49:16][D][sensor:127]: 'resistance_sensor': Sending state 12222.05371 Ω with 1 decimals of accuracy
[14:49:16][D][ntc:026]: 'NSPanel Temperature' - Temperature: 20.6°C
[14:49:16][D][sensor:127]: 'NSPanel Temperature': Sending state 20.55165 °C with 1 decimals of accuracy
[14:49:26][D][sensor:127]: 'ntc_source': Sending state 1.72000 V with 2 decimals of accuracy
[14:49:26][D][resistance:039]: 'resistance_sensor' - Resistance 12192.4Ω
[14:49:26][D][sensor:127]: 'resistance_sensor': Sending state 12192.40625 Ω with 1 decimals of accuracy
[14:49:26][D][ntc:026]: 'NSPanel Temperature' - Temperature: 20.6°C
[14:49:26][D][sensor:127]: 'NSPanel Temperature': Sending state 20.60470 °C with 1 decimals of accuracy
[14:49:27][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[14:49:27][I][mqtt:176]: Connecting to MQTT...```
#

does this work? im expecting a "conenction success" or something haha

tight marsh
#

Images of text ...

glacial fjord
#

and colour!

tight marsh
#

Thankfully text shared as text is something accessible to everybody

#

If it doesn't work, install MQTT Explorer or your choice of MQTT client software on your computer and test the details there

glacial fjord
#

these certainly are letters

#

this is baby's first mqtt

tight marsh
#

So, you can connect, which is good

#

Can you publish to a new topic?

glacial fjord
#

admittedly im very new to mqtt so may need a minute here and there while i figure out what words mean 😅

#

do i just -

tight marsh
#

Create, say, petunia as the topic and publish a raw payload of whale

#

If it doesn't error then we know that the user account works

glacial fjord
#

i published a few messages under that topic

tight marsh
#

I'd head over to the ESPHome Discord, or #diy-archived here, to troubleshoot why your ESP is being weird

glacial fjord
#

shows up on the left tree as well

chrome glacierBOT
glacial fjord
#

will do

#

youve helped me verify mqtt and mosquitto and the addon and such work fine

#

thats already a huge help

#

thank you!

glacial fjord
#

i've not yet tried the esphome server or anything, just been playing around a bit

#

my hass and this its addons are on my main vlan

#

and all my "smart" stuff i threw on an iot vlan, allowing ports/protocols where needed

#

as soon as i put my nspanel on my trusted vlan, mqtt was working fine

#

is this expected? most of my other devices, which are arguable a lot dumber, don't care about the underlying network