Change Entity state from lovelace card

hi, i am very new to HA,
i currently made a websocket and rest integration for my devices.
i can create any kind custom entity on HA.
i can see them on developer tools, when i change state or attribute from there, i can get trigger from websocket.
is it possible to change any entity’s state from lovelace cards?
i can show states and entities on cards but i dont know how to set entity state or attribute value from card.
you may say, “use service” but,
i can use websocket and rest apis, on ha documentation, i couldn’t find a way to create a service from websocket or rest…
so there are string, bool, integer states of my entities…
how can i trigger/change states from a lovelace card?