-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Influxdb 2.0 cloud does not work as in the 2.0 influxdb integration example #54658
Comments
influxdb documentation |
Hey there @fabaff, @mdegat01, mind taking a look at this issue as it has been labeled with an integration ( |
@ joanwa Can you try with the following influxdb:
api_version: 2
host: europe-west1-1.gcp.cloud2.influxdata.com
token: xxxxx
organization: org_id
|
I think it's worth updating the documentation |
Can you point me to where it says this? In the Influx DB docs all the APIs which ask for an organization ID direct you to this page for obtaining it. Which shows this: I've never seen anything that says you can use your email address. And I just tried it on my Influx Cloud account and it does not work, I get an error saying "organization name not found" when I try. Can you point me to where it says you can use your email as the org ID in the docs? Is this something for new sign-ups now?
2.x does have a default port although it appears to be 8086 now. I swear their OSS examples were all using 9999 when I wrote that, oh well I can update it. But you'll notice the example uses I can make a second example for cloud though if needed. At the time I wrote the docs Influx Cloud was only in one region so you could pretty much just add
This I will note is already in the docs. The example does not include |
You'll find it at the library code snippet section: where it generates the connection parameters according to your login automatically as shown in my example: |
haha, yeap! I searched the changelog and found it at tag 1.11.0, changed in sep 2020: https://github.com/influxdata/influxdb-client-python/releases |
The problem
influxdb integration has documentation and examples for Influxdb 2.0 and also mentions their managed cloud service. However there seem to be some documentation discrepancies, e.g.:
organization
for authentification is stated in the ha integration documentation as the part of the url after../orgs/
, however the Influxdb 2.0 cloud service states theorganization
is your email addressI tried using both organizations, also disabling verify_ssl, but always end up with these logs:
Cannot connect to InfluxDB due to '<urllib3.connection.HTTPConnection object at 0x7f915c8b20>: Failed to establish a new connection: [Errno -3] Try again'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
while trying to connect to a influxdb 2.0 cloud instance (free tier). The python sample code to write into the cloud instance works as expected from a local environment. Just can't get ha to work, and the logs don't tell me too much.
What is version of Home Assistant Core has the issue?
core-2021.8.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
influxdb
Link to integration documentation on our website
https://www.home-assistant.io/integrations/influxdb/
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: