hassio-addons / addon-influxdb

InfluxDB - Home Assistant Community Add-ons
https://addons.community
MIT License
158 stars 52 forks source link

Update InfluxDB add-on to Support InfluxDB v2 #355

Open StevenSlaa opened 3 weeks ago

StevenSlaa commented 3 weeks ago

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

Additional Context

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 commented 3 weeks ago

Added pull-request

peterniebert commented 2 weeks ago

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).