Cant update tables entrie states

I was intalling in a new tablet samba but I dont know what I did and now when I enter an order or print the tycket I the table doesnt change the color to yellow if the table isnt on use or red if I already print the tycket

Table (Entity) Colors are defined by States.

It is Rules and Actions that dictate when the Entity State (Status Color) changes. There are multiple Rules that you should look at, for example, this one:

This is default built-in behavior. If you don’t know what you did to change it, then we can’t know either.