I think it is called CHECKED and RELEASED.
I can get the status using lv_obj_get_state.
But trying to change the state using lv_obj_set_state results in not declared in this scope.
I have a button which can control a lamp through MQTT.
But this lamp can also be controlled by a different controller through MQTT.
So if the state of the lamp changes by a different controller, this should be reflected by the state of the button.