Hello,
I’m trying to do the same thing as @michaelenstone @hakj @timcrice here How to add Pimoroni Enviro/Weather sensors - #2 by hakj. However, I think I’m stuck at the stage of enabling mosquitto.
I’ve got hass (supervised) on RPi3, I’ve installed the mosquitto add-on from the store and configured that with user/password. I can submit messages to it via a command-line tool without errors (using the ip address + user/pass).
However, I don’t see anything coming through via the mosquitto logs page - should I? (I’ve enavbled debugging - I can see the successful connection from the command line tool, but not the data submitted.) How do I test mosquitto (i.e., read the data)?
There are two areas that I don’t understand:
(1) The add-on help says “Create a new user for MQTT via your Home Assistant’s frontend Configuration → Users (manage users) , (i.e. not on Mosquitto’s Configuration tab).” - however, that user isn’t mentioned again. What do I do with it? I’ve created a user in the Mosquitto’s config tab, and that user us accepted in the auth above…
(2) In the integration configuration, it says: “Discovery prefix - The prefix a configuration topic for automatic discovery must start with.” Does that mean I have to set up mqtt devices to utilise that prefix?