Skip to content
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

Update InfluxDB add-on to Support InfluxDB v2 #355

Open
StevenSlaa opened this issue Oct 31, 2024 · 2 comments
Open

Update InfluxDB add-on to Support InfluxDB v2 #355

StevenSlaa opened this issue Oct 31, 2024 · 2 comments

Comments

@StevenSlaa
Copy link

StevenSlaa commented Oct 31, 2024

Problem

The current InfluxDB add-on in Home Assistant supports only InfluxDB v1.x, which lacks compatibility with newer installations using InfluxDB v2. InfluxDB v2 brings enhanced performance, security, and new features that are beneficial for users but currently unsupported in Home Assistant.

Feature Request

Please update the InfluxDB add-on to support InfluxDB v2. This update should enable Home Assistant to communicate with InfluxDB v2 using its updated API, token-based authentication, and bucket system.

Requirements

  1. Authentication: Support for InfluxDB v2’s token-based authentication, replacing the legacy username/password setup.
  2. Bucket Support: Compatibility with InfluxDB v2’s bucket structure instead of the database/retention policy model used in v1.
  3. API Compatibility: integration with the InfluxDB v2 API endpoints.

Benefits

  • Enhanced Security: Token-based authentication provides a more secure way to interact with InfluxDB.
  • Future-Proofing: Supporting InfluxDB v2 prepares Home Assistant users for future updates from InfluxDB.
  • Improved Performance: InfluxDB v2 is optimized for faster queries and higher performance, which will benefit data-heavy installations.

Additional Context

  • InfluxDB v2 has been widely adopted, and many users are migrating to it.
  • Token-based authentication and bucket structures are now standard in InfluxDB v2, which differs from the authentication method in InfluxDB v1.x.

Suggested Solution

  1. Bump InfluxDB version to 2.
  2. Provide migration guidance for existing users upgrading from InfluxDB v1 to v2.

References

Thank you for considering this feature request!

@StevenSlaa
Copy link
Author

Added pull-request

@StevenSlaa StevenSlaa changed the title Update InfluxDB Integration to Support InfluxDB v2 Update InfluxDB add-on to Support InfluxDB v2 Oct 31, 2024
@peterniebert
Copy link

I agree that V2 is absolutely necessary, but because of major incompatibilities (notably concerning the GUI), it is necessary to have a separate add-on. People will then be able to migrate and eventually, support for V1 can be stopped.

However, I started to work on an add-on myself (my second), but because of the GUI with HA integration, it is not as simple as snapping your fingers and it went on standby. It will require a bit of work (not that much either).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants