it’s possible by script. You need to search the commands in the official influxDb documentation and wrap a script around. You can call the cli or api depending your skills
where can i create a token?
i havent "
Load Data"
Following the documentation it should be possible by opening the link
https://community.home-assistant.io/t/home-assistant-add-on-influxdb-v2/617977
You need to do the following steps in order to get this working:
Browse to http://{{ HOME_ASSISTANT_URL }}:8086 (replace {{ HOME_ASSISTANT_URL }} with the address to your home assistant installation)
Go through the onboarding process by creating a default user, password, organization and bucket.
Save the operator token for future use. Note: It’s best to create a separate user and token to be used in home assistant. Operator token has unlimited permissions to your InfluxDB installation.
I fail to create a token and/or organization. I follow the instructions that say:
Browse to http://{{ HOME_ASSISTANT_URL }}:8086 (replace {{ HOME_ASSISTANT_URL }} with the address to your home assistant installation)
But that page just give me 404 page not found
. I just installed InfluxDB, default config. Add-on version 5.0.0.
I can create databases and users by going to the InfluxDB integration in HA and then to InfluxDB Admin. But are users = organizations and password = token?
EDIT: Ok. Seems like it works if I set API version to 1 and use username/password. Seems legacy?
I cannot give you further advise as I’m running everything in docker. Therefor I cannot test by myself on my installation.
When you read the documentation it’s designed for InfluxDB v2. Organization and bucket is v2.
I could imagine that your first setup attempt created something in background what leads to issues when you re-run. Do you have the option to test setup on a fresh installation? When you use SD-Card as storage just make a backup and start from scratch. When it’s a normal PC you could also test in a virtual machine. VM Ware Workstation is free for private use.
Additionally1 you could search the issue tracker if similar issue was reported earlier. In best case including solution.
Issues · home-assistant/home-assistant.io (github.com)
Additionally2, you could go with version 1 and use the upgrade path after installation. I think there was a chapter how to upgrade in an earlier post. Same here, make a backup before any actiion
Hello !
Is it possible ton configure HA to push data to 2 distincts influxdb databases ? I have influx v1 and influx v2 instances, and I want to push my datas to both.
I would be interested as well. Unfortunately not foreseen to have multiple instances.
You need to search influxdb tools or apps to sync or split depending your needs.
Asked several times.
https://community.home-assistant.io/t/multiple-database-influxdb-in-ha/487432/9
I think this is a limitation of the client integration.
I’d suggest looking up the github repository and find if there are any issues on this topic. If so, try to contribute. If not, the add an issue with your use case.