Yes I got my answer. Thanks a lot for helping me.
Here is my implementation of the solution:
# ----------------------------------------------------------------------------------
def initialize(self):
# create staubsauger object
self.staubsauger = self.get_entity("vacuum.deebot_t8_aivi")
# ----------------------------------------------------------------------------------
def device_move_to_coordinates(self, s_pos):
self.staubsauger.call_service(
service="send_command",
command="clean_V2",
params={
"act": "start",
"content": {
"type": "customArea",
"total": 0,
"donotClean": 1,
"count": 1,
"value": f"{s_pos},{s_pos}", # needs two points that are overlapping: x,y,x,y
},
},
)
# ----------------------------------------------------------------------------------
def device_clean_rooms(self, s_room_numbers):
self.staubsauger.call_service(
service="send_command",
command="spot_area",
params={"rooms": f"{s_room_numbers}", "cleanings": 1},
)
# ----------------------------------------------------------------------------------
def device_clean_area(self, s_area_coordinates):
self.staubsauger.call_service(
service="send_command",
command="custom_area",
params={"coordinates": f"{s_area_coordinates}"},
)