question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implementation of external databases (e.g. InfluxDB)

See original GitHub issue

Checklist

  • I am running the latest version of the card
  • I checked if there isn’t another feature request opened with the same request
  • [] I checked that the feature is not already available in the dev branch

Is your feature request related to a problem? Please describe. The database in HA does not store long term data e.g. for energy consumption or other data that needs to be evaluated over longer time periods. It is also not suited to do so. Many, maybe most, users switch to additional databases such as InfluxDB.

Right now this data cannot be accessed in the ApexCharts without high levels of code adjustments (impossible for beginners and difficult to maintain for advanced users). These adjustments also prevent the user from using great additional add-ons such as auto-entities.

Describe the solution you’d like Please, add an option to access InfluxDB data. Other add-ons like Grafana only need user name and password, plus database name and address. Maybe this could be implemented in ApexCharts also? All one would need would then be an additional vairable at the beginning of the card such as “db” where you specify whether to use “db :HA” or “db: influxdb” and the respective entities will be searched for in that DB only.

I hope it is clear what I mean. Basically a variable that defines the source database and the rest stays the same. Variable names in both databases are the same anyway as the data is simply a permanent copy of the short-term HA DB data.

Describe alternatives you’ve considered There are none 😦 Grafana is an alternative, but it is faaaar less versatile and cannot be implemented into lovelace as easily and beautifully as ApexCharts.

Additional context None.

Thank you for your consideration Alex

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:31 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
RomRidercommented, Apr 12, 2022

Yes, I’m planning to implement that. Not yet sure what it will look like though 😃

0reactions
github-actions[bot]commented, Jun 2, 2022

This issue was closed because it has been stalled for 10 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with InfluxDB OSS
A fresh install of InfluxDB has no databases (apart from the system _internal ), so creating one is our first task. You can...
Read more >
InfluxDB
The influxdb integration makes it possible to transfer all state changes to an external InfluxDB database. See the official installation documentation for ...
Read more >
InfluxDB data source | Grafana documentation
InfluxDB is an open-source time series database (TSDB) developed by InfluxData. It is optimized for fast, high-availability storage and retrieval of time series ......
Read more >
InfluxDB - Wikipedia
InfluxDB is an open-source time series database (TSDB) developed by the company InfluxData. It is written in the Go programming language for storage...
Read more >
Managing databases with Cloud 66
Migrating to an external database · Switch off your application (maintenance mode is useful here) · Migrate your data to the new host...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found