fboundy / agile_predict

5 stars 1 forks source link

Sensor Entity in HA not being created #2

Open jawn22 opened 1 week ago

jawn22 commented 1 week ago

Firstly, thanks for the time creating this - really useful insight into agile prices to enable me to reduce my bills/use higher energy devices during predicted lower carbon periods.

I had the sensor setup and it was working well, however a month or so ago it stopped working (I've only just gotten around to spending time on investigating it). Looking at the logs, I'm getting the following error:

Logger: homeassistant.components.recorder.db_schema
Source: components/recorder/db_schema.py:598
integration: Recorder (documentation, issues)
First occurred: 13:28:27 (2 occurrences)
Last logged: 13:28:28

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

Any ideas on resolving this?

fboundy commented 1 week ago

I'm pretty sure this error shouldn't stop it working - it just won't save historic attributes to the database.

That said, I've just update the API so it only sends the latest forecast rather than the last 3. I need to add a couple of parameters to the API so that you can select:

I'll update this issue once these are added