Netatmo in HA 0.105

Although running latest hassio 0.110.3 (docker) I cannot get netatmo_events (netatmo welcome). I do see that the base_url is deprecated so that could be my issue. However i changed it to external_url (tried duckdns and nabu.casa, both correctly forwarded). I do see the dev app (netatmo) in my 3rd party list.

I also use the configuration.yaml instead of the cloud option as intergration . Any pointers?

Please check your netatmo dev account if webhooks have been banned.

1 Like

Thanks, figured it out :wink: User error as usual :wink:

So, everything working now?

Yes, everything is working correctly

1 Like

Can i have a live stream in lovelace?
The only thing i can see now is a black image and it says “recording”.
Is it a bad idea to have a live stream on a rsp4?

Did you try to refresh your browser?

Yes, and i have cleared cache and history. have i used the wrong card in lovelace?

image

Not sure if it has been addressed before (I could not find anythinig), but is there an easy way to access the video of an event from inside Home Assistant?
According to the official docs, the procedure should be:

Step 1: Retrieve the camera URL

Use Gethomedata method for the user. In the array “cameras”, retrieve the vpn_url for the camera you’re interested in

Step 2: Retrieve the video_id

Use Gethomedata, Getnextevents, Getlasteventof or Geteventsuntil to retrieve the video_id of the events array.

Step 3: Call the m3u8 index with the camera_url and the video id

If your app and the camera are on the same local network, add /camera_url/vod/(your_video_id)/index_local.m3u8 to access the video. If not, add /camera_url/vod/(your_video_id)/index.m3u8 to access the video

Step 1 is probably easy enough within the integration.
But is there an easy way to do any of the calls from Step 2 to retrieve the video_id?

Ideally I would love to create something like a “Calendar card” in Lovelace to list events with a clickable link to the videos. And an option to save the videos locally.
Possibly even an automation to auto-download all videos from events of a certain type (e.g. “event_data - type: animal”)

Please open a feature request for this.

Thanks, done:

1 Like

I still can’t see anything? What am i missing? Why is it not working?

Recording is misleading. Why it isn’t working for you can have multiple reasons. To debug this please open a separate thread or contact me on Discord.

To everyone interested in the current development I invite you to take a look at what’s ahead.

Like many others here I had troubles getting my Netatmo Smart Weather Station working. I saw all entities in lovelace, but there were no values.

Reading again all suggestions here, I commented out all corresponding lines in configuration.yaml, then removed the Netatmo existing integration (Configuration > Integrations), reinstalled the Netatmo ingetration and linked with (logged in at) Netatmo where prompted. I got the message “Done, your account is now linked”. Then I rebooted my HA.
BTW, I’m running Home Assistant 0.111.4

To my surprise I found all values present in the Netatmo page in lovelace! I didn’t uncomment any Netatmo lines in my configuration.yaml and yet all values are there!

Is this new in the configuration? All instructions I find around here about this subject tell me to have some lines in configuration.yaml:

netatmo:
  client_id: !secret netatmo_client_id.          # from netatmo
  client_secret: !secret netatmo_client_secret.  # from netatmo

So, what is going on here? Is this new?

You can use your own Netatmo dev account or you can use HA Cloud Linking. The latter is fine as long as you don’t want to use a Netatmo camera.

Hello!

had a netatmo thermostat working until 0.107.1 version. Today I have updated to 0.111 and suddenly it stopped working.

I saw that there were breaking changes, something related to webhooks, and those only works in ports 443 and 80. Those webhooks are not for the thermostat (the only netatmo device that I have).

In my setup, I am using duckdns with port forwarding, and I use the port 8123 to access my HA instance, and I don’t want to change the port, because I had to change a lot of stuff, and also those ports are busy.

I have tryied to remove the integration and set up again, It looks like it connects properly to my netatmo dev account, but I doesn’t find any device,

The only error that I have is

Copy to clipboard

Logger: pyatmo.thermostat
Source: components/netatmo/climate.py:470
First occurred: 21:20:12 (1 occurrences)
Last logged: 21:20:12

Errors in response: {'status': 'ok', 'time_server': 1593285613, 'body': {'home': {'id': 'some id'}, 'errors': [{'code': 6, 'id': 'a mac address'}]}}

I have my client id and secret properly configured in configuration.yaml

Someone can point me how can I solve this without changing the ports if possible?

same here, suddenly yesterday after a non related reboot the integration stopped working.
I was already on the latest HA version…

File “/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py”, line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 400, message=’’, url='https://api.netatmo.com/oauth2/token

resetted the key’s on dev.netatmo.com, also created a new app there.
All doesn’t help

Do you have your public url with the port 80 or 443? I think that this is my issue but I would like to confirm

  1. i removed the integration and after re-adding everything is fine again…