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

response variable in data_generator? #825

Open
jm-cook opened this issue Dec 11, 2024 · 0 comments
Open

response variable in data_generator? #825

jm-cook opened this issue Dec 11, 2024 · 0 comments
Labels
feature-request New feature or request

Comments

@jm-cook
Copy link

jm-cook commented Dec 11, 2024

Checklist

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

Is your feature request related to a problem? Please describe.
I am looking for a way to avoid writing a (large) dataset in to an entity in order to display it in apexcharts-card

An example is with the weather platform. In order to retrieve a future timeseries weather forecast you should use a template to fetch the data and then write it in to a template sensor: https://www.home-assistant.io/integrations/weather/#examples

The "problem" with this is that the sensor gets written to the recorder, taking up space that isn't needed. In my case I am retrieving a tide forecast, and that is a larger dataset than your average weather forecast and results in an error in the log files:

Logger: homeassistant.components.recorder.db_schema
Source: components/recorder/db_schema.py:624
integration: Recorder (documentation, issues)
First occurred: 10 December 2024 at 15:44:20 (100 occurrences)
Last logged: 08:00:00

State attributes for sensor.xxxx_tide_response exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored

Describe the solution you'd like

I know that I can probably prevent this entity being written by editing the recorder options, but I thought it would be better if the data_generator could update as a direct result of the service call. apexcharts-card already supports actions through the tap-action options etc, but then you have to click on something to make it work. I wondered if it were possible to agg more general actoin support to the card.

There are a couple of issues that I can imagine will make this a challenge (and that I have considered)

  • HA variables are not global :-( otherwise we could just make a variable outside - job done.
  • You would need to somehow trigger the update in the apex card
@jm-cook jm-cook added the feature-request New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant