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

Exception: Invalid device ID #2

Open
DieterKoblenz opened this issue Apr 13, 2020 · 16 comments
Open

Exception: Invalid device ID #2

DieterKoblenz opened this issue Apr 13, 2020 · 16 comments

Comments

@DieterKoblenz
Copy link

I've copied it from the details page, left anova, the f56-pre part. Tried all variations, still end up with the same error.

@ammarzuberi
Copy link
Owner

What type of Anova device do you have?

@DieterKoblenz
Copy link
Author

The 2nd generation with bluetooth and wifi

@lolouk44
Copy link

same issue for me.
What exactly needs to be provided for the ID?
tried the following
anova f56-a8xxxxx2e8b
f56-a8xxxxx2e8b
a8xxxxx2e8b
I have an Anova Precision Cooker Bluetooth & WI-FI 220v UK Plug:
image

Traceback (most recent call last):
  File "anova-run.py", line 3, in <module>
    cooker = AnovaCooker('anova f56-a8xxxxx2e8b')
  File "/usr/local/lib/python3.8/site-packages/anova/AnovaCooker.py", line 48, in __init__
    self.update_state()
  File "/usr/local/lib/python3.8/site-packages/anova/AnovaCooker.py", line 53, in update_state
    device_state = self.__get_raw_state()
  File "/usr/local/lib/python3.8/site-packages/anova/AnovaCooker.py", line 87, in __get_raw_state
    raise Exception('Invalid device ID')
Exception: Invalid device ID

@ammarzuberi
Copy link
Owner

ammarzuberi commented Apr 17, 2020

The differences in models might be causing some issues here. My guess is that the API responds differently depending on the device model. Can you post the response for the following request?

https://anovaculinary.io/devices/**your_cooker_id_here**/states/?limit=1&max-age=10s

Feel free to remove the cooker ID from the response.

@lolouk44
Copy link

Can you confirm the device id format please?
anova f56-a8xxxxx2e8b
f56-a8xxxxx2e8b
a8xxxxx2e8b
so far I don't seem to get any results...

@lolouk44
Copy link

Using Talend API Tester on Chrome:
image

image

@ammarzuberi
Copy link
Owner

You have the same app version as me. I have an Anova Pro and my device ID is 22 alphanumeric characters with both upper and lower case letters. I get a JSON response when I make that GET request. What does your device ID look like?

Any chance you'd be willing to share your device ID with me so I can see what's going on? If so, please email it to me. My email address is on my profile.

@lolouk44
Copy link

Hi @ammarzuberi
Can you confirm you're received my email?
What are you findings?

Thanks

@ammarzuberi
Copy link
Owner

I received and replied to your email. I'll post back with any findings when I have them.

@lolouk44
Copy link

Hi @ammarzuberi
Any luck / findings?

@hurwitzilan
Copy link

I'm having a similar problem. Happy to send you my deviceID if it will help :)

@mikeage
Copy link

mikeage commented May 28, 2020

Same problem, same empty JSON, same format of a device ID (anova f56-abcdefabcde). App ersion 3.2.8, model A3, firmware 2.7.7

@lolouk44
Copy link

To be honest I've given up on this and I'm instead using a Bluetooth connection

@stjernstrom
Copy link

I have the same problem, I've been able to communicate with the API with the help of https://github.com/bmedicke/anova.py but the method of getting the ID and secrete feels like a mess and hoped that this should be more stable.

My first guess was that my account is authenticated with 2FA authentication through google, but I cannot find a way of changing password or changing that :/

@gj0nyg
Copy link

gj0nyg commented Mar 6, 2021

I fired up mitmproxy to catch the mobile requests that I then put into postman. I had success with https://api.anovaculinary.com/cookers/{{cooker-id}}?secret={{secret}} where cooker-id = anova%20f56-a0xxxxxxa4. It fails if you don't send the secret (http 401)

@gj0nyg
Copy link

gj0nyg commented Mar 8, 2021

I've found that this library works with my older Wifi/BT Anova https://github.com/bmedicke/anova.py

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

7 participants