I have an ESP8266 setup sending a test MQTT msg to my topic: homeassistant/indoor/temp
I have setup Mosquitto MQTT but nothing registers?
I have tried manually publishing a packet with the Developer-Tools MQTT tool and this DOES work, my front-end monitor shows the state change.
What is the best way of debugging the network side of MQTT?
(Considering i am a noob)
PS. I have tried various apps but they all give connection errors, Im using the same IP as my Home Assistant with port 8083
What are you expecting to show up? Where are you expecting it to show up?
Details, my friend. Details.
Is the sensor listed in the dev-state page? Does updating value change state? What value are you changing to? What does it say the state is? Have you restarted home assistant since adding?
So much valuable information has been left out here.
Yes, sensor is on dev-state page
Yes, when I change the value in the states page the status DOES change
Status is ‘Unknown’ before I manually change it.
Yes, have restarted and refreshed many times.
I was expecting that when I publish a test msg to the topic: homeassistant/indoor/temp using MQTT-Explorer i would see a state change of the sensor on the states page in HA…? Is that not correct?
This is what I am trying to debug.
Normally in /var/log/ but not always. Normally the log file is listed in the conf file, for example I have mosquitto running as a Synology package, and I’ve specified my log file here
/var/log is empty…
I am using Configurator to view directories, is there another way to see hidden files?
There is no mention of a log file in configuration.yaml, does it need to be turned ON first
I just found some MQTT log data on the HASS.IO page, by then clicking on Mosquitto Broker, log data is at the bottom of page. The last two lines are below
1553588677: New connection from 192.168.1.21 on port 1883.
1553588677: New client connected from 192.168.1.21 as mqttjs_9e0fd90e (c1, k60).
This IS the IP I am testing publishing via MQTT-EXPLORER from, I get a connection but just no record of publishing to the topic.
Just checked this log with the 8266 and same thing happening here, I see a record here of connection but see no publish to topic logs records.