esp8266-vindriktning-particle-sensor icon indicating copy to clipboard operation
esp8266-vindriktning-particle-sensor copied to clipboard

Embarrasingly stuck

Open Nukle0n opened this issue 3 years ago • 5 comments

So I set up an MQTT broker and linked it to Home Assistant, and I soldered the board in and flashed it, and ran the config from its ad-hoc network... now what? I'm seeing the device on my router but I don't know what to do next, none of the guides on MQTT broker stuff seem to explain what to do, if I should just expect it to work? I tried inputting the address of my MQTT broke both with and without port number and I don't really know what the heck to do. Do i need to broadcast a topic? What even is a topic? Should I have set something in the code before flashing it?

My apologies for ranting but this is has turned out to be a really poor example of a first time MQTT project šŸ˜…

Nukle0n avatar Jul 17 '22 20:07 Nukle0n

I’m stuck here too šŸ˜–

Were you able to get past this?

Rclark01 avatar Aug 24 '22 17:08 Rclark01

You need to make sure your MQTT broker is accessible, you have to set up the "listener" argument in the .conf file so it can be accessed outside of the local machine. Also the address for the MQTT broker has to be without a port, it only works with the default port of 1883. Check out TomW1605's fork for some modified code that lets you access the config page without having to reflash it, as it is right now if your MQTT server doesn't work you can't change the config without reflashing and starting over.

Nukle0n avatar Aug 24 '22 17:08 Nukle0n

Thank you very much! I got it working this afternoon

Rclark01 avatar Aug 24 '22 22:08 Rclark01

Sorry for the newbie question, but where do I find the .conf file?

boomvalt avatar Oct 02 '22 17:10 boomvalt

Sorry for the newbie question, but where do I find the .conf file?

If you're using HAOS there's no conf file, you just need to set up MQTT as an extension. If you're doing docker you need map a static directory to where there is a conf file.

Nukle0n avatar Oct 02 '22 19:10 Nukle0n