Proscenic-M7-PRO icon indicating copy to clipboard operation
Proscenic-M7-PRO copied to clipboard

The URLs for the APIs have changed. The following should work.

Open JuliusBlueTek opened this issue 2 years ago • 4 comments

curl -v -k -X POST -H "os: i" -H "Content-Type: application/json" -H "c: 338" -H "lan: en" -H "Host: mobile.proscenic.tw" -H "User-Agent: ProscenicHome/1.7.8 (iPhone; iOS 14.2.1; Scale/3.00)" -H "v: 1.7.8" -d "{\"state\":\"欧洲\",\"countryCode\":\"49\",\"appVer\":\"1.7.8\",\"type\":\"2\",\"os\":\"IOS\",\"password\":\"$(echo -n $PASSWORD | md5sum)\",\"registrationId\":\"13165ffa4eb156ac484\",\"language\":\"EN\",\"username\":\"$LOGINUSER\",\"pwd\":\"$PASSWORD\"}" "https://mobile.proscenic.tw/user/login"

The SN number can be gotten from: curl "https://mobile.proscenic.tw/user/getEquips/$LOGINUSER" -d "username=$LOGINUSER"

The rest_commands.yaml needs to be changed to ->

rest_command:
  proscenic_clean:
    url: "https://mobile.proscenic.tw/instructions/cmd21005/{{ serial }}?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'cleanMode=sweepOnly&mode=smartAreaClean'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_deep_cleaning:
    url: "https://mobile.proscenic.tw/instructions/cmd21005_2/{{ serial }}?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'mode=depthTotalClean'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_collect_dust:
    url: "https://mobile.proscenic.tw/instructions/cmd/{{ serial }}?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: '{"dInfo":{"ts": "1675216377168","userId":"{{ username }}"},"data":{"cmd":"startDustCenter","value":0},"infoType":21024};'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_pause:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21017?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'mode=pause'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_continue:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21017?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'pauseOrContinue=continue'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_charge:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21012?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'charge=start'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_powermode_standard:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21022?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'setMode=auto'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_powermode_powerful:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21022?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'setMode=strong'
    content_type: 'application/x-www-form-urlencoded'

  proscenic_powermode_quiet:
    url: "https://mobile.proscenic.tw/instructions/{{ serial }}/21022?username={{ username }}"
    method: POST
    headers:
      host: "mobile.proscenic.com.de:443"
      token: "{{ token }}"
    payload: 'setMode=quiet'
    content_type: 'application/x-www-form-urlencoded'

JuliusBlueTek avatar Feb 01 '23 02:02 JuliusBlueTek

I've created a Repo for the M7 that works on Proscenic home. (It may work with other vacuums form the Proscenic Home app). That can be installed via hacks. It's still rough around the edges, but it lets you get the map view (and updates while the vacuum moves around) and do all the commands. Check it out here. Also thanks to @andker87 for the work here! It sent me down a rabbit hole I've had fun working on!

JuliusBlueTek avatar Jul 29 '23 03:07 JuliusBlueTek

I've created a Repo for the M7 that works on Proscenic home. (It may work with other vacuums form the Proscenic Home app). That can be installed via hacks. It's still rough around the edges, but it lets you get the map view (and updates while the vacuum moves around) and do all the commands. Check it out here. Also thanks to @andker87 for the work here! It sent me down a rabbit hole I've had fun working on!

I cant get your repo to work with my M7 Pro... It installs fine, but after i always get configuration failed

Stofakiller2 avatar Sep 18 '23 07:09 Stofakiller2

Mine has been working until a couple of days ago, so i looked into this, i fane get token etc, but nothing when i run the rest_commands... I even created a new account at Proscenic, and both .tw and .com.de gives SN and token, but nothng works in HA...

Stofakiller2 avatar Sep 18 '23 07:09 Stofakiller2

Ciao guys! thank you for this integration! can someone help me setting this up? i installed via HACS and it recognized my robot (not working yet, it's an M6 Pro but I'd like to help you guys to see if it's compatible or not) image I've investigated the files but i can't find where to insert the SN...

federicosantolini avatar Sep 18 '23 09:09 federicosantolini