Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JuliusBlueTek opened this issue Feb 1, 2023 · 4 comments
Open

Comments

@JuliusBlueTek
Copy link

JuliusBlueTek commented Feb 1, 2023

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
Copy link
Author

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!

@Stofakiller2
Copy link

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
Copy link

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...

@federicosantolini
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants