grocy icon indicating copy to clipboard operation
grocy copied to clipboard

sensor exceeds maximum size and another message

Open hklages opened this issue 1 year ago • 1 comments

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.

hklages avatar May 04 '23 07:05 hklages

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

B4dC4rd avatar Sep 29 '23 23:09 B4dC4rd