Card Tile Key 'state' is not expected or not supported by the visual editor

Why do i get this error so much but every thing work but i can’t go to visual editor so also can’t resize card like this

state is not a documented function of the tile card. Where did you get the idea from to put that in there?

from a youtube movie i was searching for a card for my smoke detection with images in different colors when save and in alarm but can’t find much because you don’t know how they name it