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

How to increase the size of scene table? (TZ-608) #234

Open
mundevx opened this issue Jan 30, 2024 · 5 comments
Open

How to increase the size of scene table? (TZ-608) #234

mundevx opened this issue Jan 30, 2024 · 5 comments
Labels

Comments

@mundevx
Copy link

mundevx commented Jan 30, 2024

Question

I am getting this error:
ESP_ZIGBEE_CORE: Insufficient scenes table for scene(0x5), fail to store it

Then i read espressif documentation for zigbee:-
https://docs.espressif.com/projects/esp-zigbee-sdk/en/latest/esp32/api-reference/zcl/esp_zigbee_zcl_command.html
There is written The maximum number of scenes capable of being stored in the table is 10.

How i can increase this size for scene store table? and also in case of group.

Additional context.

No response

@github-actions github-actions bot changed the title How to increase the size of scene table? How to increase the size of scene table? (TZ-608) Jan 30, 2024
@mundevx
Copy link
Author

mundevx commented Jan 31, 2024

Hi, i am still unable to find the file where i can increase size of scene table.

@chshu
Copy link
Collaborator

chshu commented Feb 1, 2024

The max scene table size is 16 in current 1.0.9 SDK, and not configurable. It should meet most use cases, could you let us know your use case and the table size you need?

@mundevx
Copy link
Author

mundevx commented Feb 1, 2024

Hi @chshu ,

I had a 12-scene 4-switch wireless scene switch.
For every switch had 3 scenes, Single click, Double Click, Long Press.
I had 4 lights where espressif light code is running with 4 endpoints.

If i create a scene for single click from app for 4 lights, then it add 4 records in scene table.
Below table is for scene created for 4 lights from app for SINGLE CLICK only.
............................................................................................................................................................
index | group_id | scene_id | endpoint |
0 | 1 | 1 | 1 |
1 | 1 | 1 | 2 |
2 | 1 | 1 | 3 |
3 | 1 | 1 | 4 |
...............................................................................................................................................................
If i creates scenes on click modes Single, double and long press, entry in table extend upto 3x4(lights) = 12.
Now i have 4 switches in a 4-gang scene switch, so total scenes table entry is 3x4(lights)x4(switches) = 48.
Total entries in scene table should be 48, but after 16 scene entries in a table, I am getting this error:
ESP_ZIGBEE_CORE: Insufficient scenes table for scene(0x5), fail to store it.

Suppose i am using 64 lights in a scene, then scenes size reached upto 3x64x4 = 768 table entries.

I my use case, i need 500 max size for scene table.

@mundevx
Copy link
Author

mundevx commented Feb 5, 2024

As i checked with other zigbee lights, that don't have espressif code, it is able to store scene more than 16 entries. i cheked it with my scene switch.
How i can increase scene table size?

@chshu
Copy link
Collaborator

chshu commented Feb 18, 2024

@mundevx The scene table size is not configurable yet, we will make it dynamic allocation in the future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants