How to I generate organization/bucket/token for an influxdb database through the influxdb add-on so that I can send data to it from the outside?
What I want to do: send some temperature data from another computer, preferably using python, to the influxdb database that runs on my home assistant.
I have installed the influxdb add-on on hassos (home assistant running on an SD-card on a RPi4). Home assistant successfullly writes state changes to the influxdb database and I have added it as a data source to the grafana add-on so that I can plot some of that data.
However, it seems that organization, bucket and token is needed to write to influxdb from the outside. Nowhere in the add-on GUI can I find anything about how to setup this up. When testing a cloud instance of influxdb the GUI is similar to the add-on, but the options for token etc. are clearly visible. They seem completely absent from the add-on.
Is there another GUI I can access somehow, or am I blind to the obvious option that I can’t find?
If I recall correctly tokens & organization are only necessary for influxdb version 2. I switched to v1 instead (can be done in HA configuration) and could do regular user/pass auth instead. Given the small scale of my operation that felt reasonably safe.
Just updating this, I’m running into the same problem, absolutely zero information on how to obtain a token and bucket apart from “you need to have a token and bucket”. The InfluxDB add-on docs, dated 2025, still only talk about username and password.
So I’m using the same hack as the previous poster, rolling back to the v1 API. Does anyone know what functionality you’re losing by doing this?
After playing with InfluxDB’s crazy escape-room UI for a bit I’ve confirmed that at least there is a bucket present. To see this, go to the web UI, click on the thing in the left column that looks like a backwards Z, then in the Explore frame click on “Flux”, next to the default “InfluxQL”. Finally in the Schema frame move your mouse pointer over the name of the database you’re using. The word “Bucket” will pop up to the right of it, confirming that there is either a bucket called “homeassistant” or one called “homeassistan/autogen”, however what “organization” or “token” should be is still unknown. And yes, I did try up, up, down, down, left, right, left, right, B, A but it didn’t unlock any further information.