Ligio / ozmo

GNU General Public License v3.0
24 stars 12 forks source link

Combine and integrate your code into deebot_client #13

Open edenhaus opened 2 years ago

edenhaus commented 2 years ago

Hi @Ligio,

what do you think to add your "xml" code into deebot-client, so we can support with one library more different models? As I don't have a "xml" based robot, I cannot debug it, so it's hard to support it on my own.

Cheers and thanks in advance Robert

MilovanTatic commented 2 years ago

I can debug with a 930.

edenhaus commented 2 years ago

@MilovanTatic Can you write python code? As I need someone to provide the code too.

MilovanTatic commented 2 years ago

@edenhaus unfortunately not. But, i've bought you a beer or three, as my other knowledge enables that. Did you see: https://github.com/nickw444/deebot-t8-hass ... Maybe the author can help too?

edenhaus commented 2 years ago

Thanks for the beers :)

The component you mentioned is also using the new json format like the 950 and not xml. It's hard to add code blind as I don't can test it, but we try to add the support for xml bots in the next couple of months.

Sorry as I have only the 950 it's hard for me to guess the correct commands, from the code in this repo, I know the are named completely different.

enricozocca commented 2 years ago

Hi all, I've got a 605 and I can help in debug or test.

edenhaus commented 2 years ago

Before the implementation can be start, we need to identify all commands. This can only be done by persons, which have a model, which uses mqtt/xml (You both and not me). Please add your findings to https://deebot.readthedocs.io/advanced/data_types/xml/commands/ Afterwards I can implemented the code using your provided commands

enricozocca commented 2 years ago

Hi edenhaus, I can identify command for my 605. Could you please provide me a guide or a link that can help me to create an environment to send MQTT command? Enrico

enricozocca commented 2 years ago

For example I'm able to retrive command send from ozmo in debug mode on HA. This below is clean command. I can provide this for every command send to my 605. Is this enough?

2021-12-09 14:29:37 DEBUG (SyncWorker_6) [ozmo] Sending command {'auth': {'realm': 'ecouser.net', 'resource': 'CWJTXF3W', 'token': 'V_2_eyJ1IjoiZmxjdWtuZjEyNzY3Y2Q5NiIsInIiOiJDV0pUWEYzVyIsInQiOiJhIiwiaWF0IjoxNjM5MDM2MzEwLCJleHAiOjE2Mzk2NDExMTB9.mfpeLzVpyVB4gkjnng-qJctwYT2f1yBWA5fV904aits', 'userid': 'flcuknf12767cd96', 'with': 'users'}, 'cmdName': 'Clean', 'payload': '', 'payloadType': 'x', 'td': 'q', 'toId': 'bac374d9-0bff-4c93-98ef-ee923504531f', 'toRes': 'O6gA', 'toType': 'dl8fht'}

2021-12-09 14:29:37 DEBUG (SyncWorker_6) [ozmo] calling iotdevmanager api with {'auth': {'realm': 'ecouser.net', 'resource': 'CWJTXF3W', 'token': 'V_2_eyJ1IjoiZmxjdWtuZjEyNzY3Y2Q5NiIsInIiOiJDV0pUWEYzVyIsInQiOiJhIiwiaWF0IjoxNjM5MDM2MzEwLCJleHAiOjE2Mzk2NDExMTB9.mfpeLzVpyVB4gkjnng-qJctwYT2f1yBWA5fV904aits', 'userid': 'flcuknf12767cd96', 'with': 'users'}, 'cmdName': 'Clean', 'payload': '', 'payloadType': 'x', 'td': 'q', 'toId': 'bac374d9-0bff-4c93-98ef-ee923504531f', 'toRes': 'O6gA', 'toType': 'dl8fht'}

Marcoske23 commented 2 years ago

Hi @Ligio,

what do you think to add your "xml" code into deebot-client, so we can support with one library more different models? As I don't have a "xml" based robot, I cannot debug it, so it's hard to support it on my own.

Cheers and thanks in advance Robert

Hi! i can debug with a ecovacs 500. I want to Help to create a componnet for HA with XML/MQTT. :)

edenhaus commented 2 years ago

@Marcoske23 Please feel free to add the xml commands to the our docs. So I can see the differences between json and xml