custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
158 stars 48 forks source link

sensor exceeds maximum size and another message #273

Open hklages opened 1 year ago

hklages commented 1 year ago

Unless all relevant information is provided, I can't help you

Describe the bug There are 2 warnings in my log file:

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

and then:

The unit of sensor.grocy_chores is changing, got multiple {'Chore(s)', None}, generation of long term statistics will be suppressed unless the unit is stable and matches the unit of already compiled statistics (Chore(s)). Go to https://my.home-assistant.io/redirect/developer_statistics to fix this

Expected behavior No warning :-)

To Reproduce Just reading the log files. In my system there are about 30 chores - whats not so much.

General information to help debugging:

What is your installed versions of Home Assistant, Grocy and this integration? Home Assistant: 2023.5 Add-on: Current version: 0.19.0 Integration: 4.8.0

How do you have Grocy installed? Add-on or external? As Add-on

Have you added debugging to the log, and what does the log say? No

JSON service data (if related to using a service)

Additional context My chores includes descriptions. They may cause the "exceed maximum" warning. I don't need that description. Any chance to exclude them in the JSON to avoid the "maximum exceed" message.

B4dC4rd commented 1 year ago

I had the same error. To workaround it I excluded the sensor.grocy_chores from the recorder integration.