I have three cameras… One welcome, and two presence. The outdoor cameras has stopped working… One earlier in the week and the other yesterday. I have a suspicion that it might be related to a firmware update which was rolled out. I tried setting up the integration again, with and without yaml and that gives the same result. The cameras are found, but no image is shown. I enabled logging for the netatmo integration and noticed this
2021-09-24 22:09:11 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n <head>\n <title>500 Internal Server Error</title>\n </head>\n <body>\n <h1>500 Internal Server Error</h1>\n </body>\n</html>\n' (500)
2021-09-24 22:09:11 DEBUG (MainThread) [homeassistant.components.netatmo.camera] Could not fetch live camera image (0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://prodvpn-eu-1.netatmo.net/restricted/10.255.233.25/263a7f06fe6799cb214a57019024455f/MTYzMjUyNDQwMDqH4IJbpXEx80uO-t34wBDWLf1DXQ,,/live/snapshot_720.jpg'))
2021-09-24 22:09:11 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n <head>\n <title>500 Internal Server Error</title>\n </head>\n <body>\n <h1>500 Internal Server Error</h1>\n </body>\n</html>\n' (500)
2021-09-24 22:09:11 DEBUG (MainThread) [homeassistant.components.netatmo.camera] Could not fetch live camera image (0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://prodvpn-eu-2.netatmo.net/restricted/10.255.160.16/52d9a8f7b0f2aa977bf2015b0cc3b988/MTYzMjUyNDQwMDr9nKtYhZRdHz7QamKdlQkkcItJrQ,,/live/snapshot_720.jpg'))
I’ve also tried to regenerate my tokens on the dev.netatmo page, and ofcourse rebooted my Home Assistant
Could netatmo have changed something in the API since it returns a result 500 ?
Okay i just figured out that the live stream actually does work, but the picture-glance card that i use to show the cameras, still has a grey box where there used to be a snapshot from the cameras… so maybe its something with the snapshot?
Same here with my Netatmo presence; after the firmware update the stream is still working but the snapshot is not visible anymore in HA. I see there is an issue on Github, but seems not directly related to the issue we have → https://github.com/home-assistant/core/issues/55757.
I also have a new entity select.netatmo_thuis, seems to be related to a thermostat, but I don’t have a Netatmo one
All my other cameras are still showing the snapshots, so seems to be caused by the Netatmo firmware upgrade which was installed 24-09 ~16:00 (CEST).
Our problem will be solved!
Had identical issue with my outdoor Netatmo. Went to github page for help but suggestions and attempted to rollback to backups with earlier releases (9.0 / 9.1 / 8.x) didn’t solved any at my end.
So, if rolling back is not the solution, upgrading is! I saw hopeful signs in the new 2021.10 version so I did want I not keen to do usually: running the beta. Once installing the 2021.10.0b9, my Netatmo image appeared just as the way it was.
Would like to try this, but my local_url is ‘null’. Looks like I’m having trouble authenticating, although I do have a token. Screenshot of device attributes attached.
OK, mine is working again after upgrading to 2021.10, removing the integration, commenting out the netatmo platform in configuration.yaml that referenced my individual client id & secret, restarting to complete the removal, and re-installing the integration, using the Nabu Casa web service for authentication.
I see advisories that the Nabu Casa webhooks are unreliable, but at least it’s working. I’ll leave it this way for now, and return here if I see evidence of this supposed flakiness with Nabu Casa.
Just to comment the usage of the HA Cloud Link and the unreliability of the Netatmo webhook events. This is resolved when an individual dev account is used. The camera limitation for the HA Cloud Link variant was lifted with 2021.10 IIRC but does not affect the livestream at all. So both variants are working as far as I know from multiple users.