Hypfer / esp8266-vindriktning-particle-sensor

Wifi MQTT Data Logging via an esp8266 for the Ikea VINDRIKTNING PM2.5 air quality sensor
Apache License 2.0
1.18k stars 128 forks source link

Embarrasingly stuck #55

Open Nukle0n opened 2 years ago

Nukle0n commented 2 years ago

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 šŸ˜…

Rclark01 commented 2 years ago

Iā€™m stuck here too šŸ˜–

Were you able to get past this?

Nukle0n commented 2 years ago

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.

Rclark01 commented 2 years ago

Thank you very much! I got it working this afternoon

boomvalt commented 2 years ago

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

Nukle0n commented 2 years ago

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.