SmartThings Community

Event Data Limits

(SmartThings) #1

As part of ongoing efforts to balance openness with performance, we are implementing a limit to how much data can be stored by an event. The change applies to three parts of an event: descriptionText, value, and data. For descriptionText and value fields, when the limit is reached, the message will be truncated with an ellipsis. When the data field exceeds the limit, in order to avoid saving invalid data such as malformed JSON, the value will be set to null.

This change will be implemented today. Users impacted by this change may lose data from trace events which should only impact live logging.

The SmartThings Community Team

Hub Firmware Beta 0.25.18
(Jimmy) #2

So what is the quantitative limit? A certain number of characters?


I think this is like the Google puzzle. If you come up with the correct number(s), you get hired :grin:


Let me see …

Description text: 36 bushels
Value fields: 16 gallons
Data field: 14 hectares

… am I hired? :stuck_out_tongue_winking_eye:

Always a guessing game and a lot of speculation that come with/follow these ST announcements :unamused:

(Brian) #5

Sounds like it’s more of a “you’ll know the limit once you’ve hit it” kind of situation.

(Kurt Sanders) #6

I’m betting it is some derivative of π.


PM @ady642 to see if you’re close :smiley:


Yeah, I thought about that, LOL …

(might be my fake name?) #9

So what does this mean in layman terms? AKA: someone who has a fairly high number of devices, with a bunch of webCoRE pistons, but doesn’t speak computer🤪?

(Ron Talley) #10

:thinking: I actually have no idea what I just read…:roll_eyes:

( - Make your home your butler!) #11

It probably won’t impact 99(.9)% of users. I’m guessing there are a few apps/users who are using it to store and pass large amounts of data between apps which wasn’t the intended design for events. From what I understand events are cached on a high speed system to keep in sync but that means it can only process limited amounts of data without impacting the system performance.

Maybe the staff can identify if there are specific apps which would be impacted or outline the limits so that developers can be extra cautious to build in safety checks.

(Brad) #12

You are not likely to encounter this.

When events are stored, there are often data, descriptionText, and value fields associated with that event. Usually these are very small bits of information but occasionally a custom device or SmartApp will store a bunch of information in these fields.

Here are some examples of how I believe this will look.

This is a typical lock event with a small amount of information in the data and description fields:

If the amount of information in the data field is too large, null will be stored:

For the description field, the information will be truncated with ellipsis similar to this:

A typical value for a lock event may look like this:

If the information in the value field is too large, it will also be truncated with ellipsis similar to this:

(Tony Fleisher) #13

I am a little confused about the reference to “trace events which should only impact live logging”. are there limits on log.trace as part of this?
Also, where can we find documentation of what these new limits are?