core: Login works - but doesn't detect device
The problem
I have an Anova Smart Cooker and while the new HA lets me login, the device and entities aren’t added.
Here is the output from the websocket that I had figured out previously (wss://devices.anovaculinary.io/?token=…&supportedAccessories=APC&platform=android )
{
"command": "EVENT_APC_STATE",
"payload": {
"cookerId": "anova f56-a021bded770",
"type": "a3",
"state": {
"firmwareVersion": "ver 5.5.1",
"isCooking": true,
"currentTemperature": 96,
"targetTemperature": 97.5,
"timerInSeconds": 0,
"unit": "f",
"isTimerRunning": false,
"isSpeakerOn": true,
"isAlarmActive": true,
"currentJobID": "c9865c10-0581-4f91-a6d7-bcab605797ac",
"currentJob": {
"jobType": "manual_cook",
"jobStage": "cooking",
"targetTemperature": 97.5,
"timerLength": 0,
"tempUnit": "f",
"thresholdTemperature": 40,
"thresholdTemperatureUnit": "f"
},
"isKeepingWarm": false,
"isCheckingTemperatureForIceBath": false,
"isMonitoringIcebath": false,
"isConnected": true
}
}
}
What version of Home Assistant Core has the issue?
core-2024.6.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Anova
Link to integration documentation on our website
https://www.home-assistant.io/integrations/anova
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2024-06-05 13:50:11.681 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/anova_wifi/websocket_handler.py", line 63, in message_listener
self.on_message(json.loads(msg.data))
File "/usr/local/lib/python3.12/site-packages/anova_wifi/websocket_handler.py", line 55, in on_message
update = build_wifi_cooker_state_body(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anova_wifi/web_socket_containers.py", line 200, in build_wifi_cooker_state_body
job_json: dict[str, Any] = apc_response["job"]
~~~~~~~~~~~~^^^^^^^
KeyError: 'job'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 42 (14 by maintainers)
Sorry everyone - I assumed that this change would fix everything, but Anova is rather silly and apparently uses a different internal messaging schema for each device type. I’ll continue to work on a fix and try to get something out. Fortunately, this should be a lot better than your previous problems as it is not a entire rewrite, simply just adding more parsing of text from the websocket
The problem is solved, it is a pity that it is not as we would like. 😃
Today, when I logged in to the Anova app, I received a message: «We’re saying goodbye to our original cookers next year. After September 28, 2025, you will no longer be able to connect your original Anova Precision Cooker Bluetooth or Bluetooth+WiFi to the Anova app. We’ve been supporting these cookers for 10 years, but now it’s time to retire them."
As far as I understand, after September 28, all old devices will stop working, and there is no point in trying to integrate them.
My A4 is now detected after the latest upgrade.
This should fix A4: https://github.com/home-assistant/core/pull/121222 and should be hopefully included in the next minor release
A6/A7 are doing some weird things that I will have to handle when I have a chance, but I don’t have the time right now so I wanted to get out what I could
Anova loves to make things more difficult 😃
This was a semi-solved problem with the old method of getting data, I had made an assumption that all of them would return the same on the websocket. I guess I was wrong. I can work on this, no promises how quickly i can accomplish it