I followed the instructions at Raspberry Pi - Home Assistant and got it running OK, then tried adding the mosquitto add-on. The pages I was given didn’t have anything matching the instructions on Getting Started with our Tasmota Products | Local Bytes Blog (there was no “Addons” in “Settings”) but I modified the link in the button on that page, which was (relative to my base URL; the forum won’t let me post the whole link) _my_redirect/supervisor_addon?addon=core_mosquitto which said “This redirect is not supported by your Home Assistant installation. It needs either the Home Assistant Operating System or Home Assistant Supervised installation method. For more information, see the documentation.” Is it possible to add tasmota to a containerized HA, and if so, how? There are other things I want that Pi to be running as well, such that I’d rather not have to install the HA OS on it.
Sure, Tasmota is an integration, it works in any install method.
All you have to do is add Mosquitto to your Docker stack. Assuming you’re using a compose file (you should be) then add this to it:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:2
restart: unless-stopped
ports:
- "1883:1883/tcp"
- "8883:8883/tcp"
- "9001:9001/tcp"
volumes:
- /data/mosquitto/config:/mosquitto/config
- /data/mosquitto/data:/mosquitto/data
- /data/mosquitto/log:/mosquitto/log
Then in /data/mosquitto/config
you’ll create mosquitto.conf
with the following contents:
persistence true
persistence_location /mosquitto/data/
password_file /mosquitto/config/pwfile
allow_anonymous true
log_dest file /mosquitto/log/mosquitto.log
listener 1883
listener 8883
listener 9001
And finally start it with docker compose up -d mosquitto
Thanks — I’ll try this. I’m not yet using a compose file, but I’ll try to switch over to that (but won’t be until tomorrow).