home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.17k stars 30.2k forks source link

Netatmo Camera - just 1 not working #107660

Closed dersupergrobi closed 2 months ago

dersupergrobi commented 9 months ago

The problem

I have a problem with one netatmo camera, error message in log below. i dont know in wich version it workes last time, because i always hope it works again with nedwer Version.

The Problem here: just one of the cameras doesnt work in HA, the other one works perfect "as designed"

I remove integration, rebootet, installed new, rebootet the Camera (it works on all other places (HomeKit and Netatmo app), just this one will not work in HA

What i did not test so far: Power Off/On or reset the camera

What version of Home Assistant Core has the issue?

2024-1-2

What was the last working version of Home Assistant Core?

dont know

What type of installation are you running?

Home Assistant OS

Integration causing the issue

netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.netatmo
Source: components/netatmo/__init__.py:206
Integration: Netatmo (documentation, issues)
First occurred: 8. Januar 2024 um 09:19:19 (2 occurrences)
Last logged: 15:20:52
Webhook not registered - https and port 443 is required to register the webhook

Additional information

none

home-assistant[bot] commented 9 months ago

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `netatmo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign netatmo` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

cgtobi commented 9 months ago

Please check the response of https://dev.netatmo.com/apidocumentation/security#homestatus for your home and look for the values of that camera.

dersupergrobi commented 9 months ago

hey @cgtobi, danke für die Antwort

i didnt know this site, here the results: Homestatus:

{
    "status": "ok",
    "time_server": 1704817226,
    "body": {
        "home": {
            "id": "620ea7fefcb7f74d8f0d0fxx",
            "modules": [
                {
                    "id": "70:ee:50:7f:xx:xx",
                    "type": "NOC",
                    "firmware_revision": 3018000,
                    "wifi_state": "high",
                    "wifi_strength": 64,
                    "sd_status": 4,
                    "alim_status": 2,
                    "vpn_url": "https://prodvpn-eu-2.netatmo.net/restricted/10.255.10.107/9fb8baa5d9c58194659cc13d197a8970/MTcwNDgyNjgwMDp6zQmchHSabicMLeD_AeJJ8REHbz,,",
                    "is_local": true,
                    "floodlight": "auto",
                    "monitoring": "on"
                },
                {
                    "id": "70:ee:50:7f:xx:xx",
                    "type": "NOC",
                    "firmware_revision": 3018000,
                    "wifi_state": "high",
                    "wifi_strength": 58,
                    "sd_status": 4,
                    "alim_status": 2,
                    "vpn_url": "https://prodvpn-eu-9.netatmo.net/restricted/10.255.89.30/4223669683e561a46dbaa932b055eb70/MTcwNDgyNjgwMDr2D0e3HBOmUwzn4kZS3NRHWqgGtz,,",
                    "is_local": true,
                    "floodlight": "auto",
                    "monitoring": "on"
                }
            ]
        }
    }
}
dersupergrobi commented 9 months ago

so for me all looks fine...

cgtobi commented 9 months ago

@dersupergrobi please also check https://dev.netatmo.com/apidocumentation/control#homesdata

dersupergrobi commented 8 months ago

for me this also looks fine

{
  "body": {
    "homes": [
      {
        "id": "620ea7fefcb7f74d8f0dxxxx",
        "name": "OurCastle",
        "altitude": 138,
        "coordinates": [
          6.721818,
          50.76461
        ],
        "country": "DE",
        "timezone": "Europe/Berlin",
        "rooms": [
          {
            "id": "246667xxxx",
            "name": "Garten",
            "type": "custom",
            "module_ids": [
              "70:ee:50:7f:xx:xx"
            ]
          },
          {
            "id": "263079xxxx",
            "name": "Eingang",
            "type": "custom",
            "module_ids": [
              "70:ee:50:7f:xx:xx"
            ]
          }
        ],
        "modules": [
          {
            "id": "70:ee:50:7f:xx:xx",
            "type": "NOC",
            "name": "Eingang Außenkamera",
            "setup_date": 1645127599,
            "room_id": "263079xxxx"
          },
          {
            "id": "70:ee:50:7f:xx:xx",
            "type": "NOC",
            "name": "GartenCam",
            "setup_date": 1657868611,
            "room_id": "246667xxxx"
          }
        ]
      }
    ],
    "user": {
      "email": "frank.wx@xxxx.de",
      "language": "de-DE",
      "locale": "de-DE",
      "feel_like_algorithm": 0,
      "unit_pressure": 0,
      "unit_system": 0,
      "unit_wind": 0,
      "id": "620ea2c2044cba34491xxxx"
    }
  },
  "status": "ok",
  "time_exec": 0.03612494468688965,
  "time_server": 1704817205
}
dersupergrobi commented 8 months ago

i also powered the faulty device off/on few minutes ago: no changes grafik

dersupergrobi commented 8 months ago

maybe i come to another step - after reboot and reinstalling i have no access:

{ "error": { "code": 13, "message": "Forbidden access to home" } }

wondering why the information yesterday and earlier worked...

cgtobi commented 8 months ago

Do you use your own dev credentials or HA Cloud?

dersupergrobi commented 8 months ago

Do you use your own dev credentials or HA Cloud?

my own credentials, and i am able to log in and see the devices online This morning i also deleted the binding between HA and netatmo to bind it new - also same as before: one camera working, one not. in the past it helped to restart cam OR delete the integration.

what i don´t have and never needed before is a duckdns (for example): i have a "Deutsche Glasfaser" Account with an own IPv6 only. But i have this for 1m5 years now and it also worked before with both cameras. maybe there could be a fault - i am explring in all directions

cgtobi commented 8 months ago

Where did that "Forbidden access to home" error happen?

dersupergrobi commented 8 months ago

now in both, homesdata and homestatus (yesterday it worked as it should) - and the one camera is still working

dersupergrobi commented 8 months ago

i assume the binding between HA and my integrations is gone - will look after this as well

dersupergrobi commented 8 months ago

created a new autho token (app in dev acc was gone, also credentials in HA was gone) but still same faults

cgtobi commented 8 months ago

You mean you get errors for https://dev.netatmo.com/apidocumentation/security#homesdata as well?

dersupergrobi commented 8 months ago

so - now i have all homesdata and homestatus correct again. (i guess i used the wron ID before - sorry for that)

so in the meantime i tried: delete integration start new App in dev Account used the new clientID and clientsecret to enter new credentials in HA installed integration

same as before: one camera is working in HA, one not

EDIT: maybe i can delete the token for the cam manually and connect it again?

dersupergrobi commented 8 months ago

Did now: remove cam from account factory reset of cam new installtion

same result

cgtobi commented 8 months ago

The API looks fine. We need to approach this differently. Can you contact me via discord?

dersupergrobi commented 8 months ago

yes will do. no i also tried: change IP address (found another entry in forums, as i am Unify user) change to HA account from dev Account...but will move back

dersupergrobi commented 8 months ago

my "Solution":

i am Ubiquiti User and tried a lot hints i found, but what worked for me was: restart all the Ubiquite AP...sounds weird, but it worked

cgtobi commented 8 months ago

Thanks for sharing that hint. Maybe consider adding this to the documentation so other may find it more easily.

dersupergrobi commented 8 months ago

feel free - in my case the camera ws connected to a AP IW - although it was mapped to another one.

cryoplay commented 7 months ago

Interessting. Same Problem here. 1 Cameras Streams. 3 Cameras and one Doorbell not. Tried rebooting my Amplifi Setup and Cameras with no Luck. Im going also over the Dev account of Netatmo. But yet im not sure where i find the log in Homeassistant.

You need this?

Logger: homeassistant.components.stream.stream.camera.xxxxx Source: components/stream/init.py:431 Integration: Stream (documentation, issues) First occurred: 10:47:51 (65 occurrences) Last logged: 16:34:31

Error from stream worker: Error opening stream (ERRORTYPE_2, No such file or directory) None/live/files/high/index.m3u8

dersupergrobi commented 7 months ago

@cryoplay i had it again this week, rebootet my environment and all was fine again

cryoplay commented 7 months ago

@dersupergrobi interessting. I also rebooted and deactivated IPV6 in my Router ( Mikrotic make magical things with IPV6 ) and nothing happens. Yesterday the whole setup runs. Today morning only one Camera. Now all Cameras inclusive the Doorbell. I suspect that it's not the @cgtobi integration but rather the Netatmo API. The apps have also been revised and now have a new UI

dersupergrobi commented 7 months ago

@cryoplay in my setup the fun fact is: netatmo works in Netatmo App, works in HomeKit, all relevant information from DevTools are correct. in my case i found that i "pinned" the cameras to one access point but - i dont know how - they are connectoed to another one. now i stopped the pin for the AP and i will look how it goes. unifi environment here

cryoplay commented 7 months ago

@dersupergrobi Unifi also here. Mikrotik Router ( only one that can handle my connection ), Unifi Switches and Amplifi Wifi. I just have fixed IPs for the camera but i must check on which AP or Meshpoint the Cams are.

simondaigre commented 6 months ago

I have exactly the same issue. I have 5 Netatmo cameras, 3 are offline in HA without reason. I tried everything (rebooting, reset, etc..). And the video feed is working in Netatmo app & Frigate (installed on HA). @cgtobi Can I contact you on Discord ?

kurdybanek commented 6 months ago

I have similar issues, but just with the streaming. I have 10 cameras (9 Presence + 1 Welcome) and recently 5 of them stopped streaming, presenting themselves as "unavailable". What is interesting, I can control lights on these cameras and I am receiving notifications about events (human/car/animal/other seen), at least from some of them (I'm not able to check all of them before weekend)

I had a problem with this integration before, but the other way around - streaming was fine, but I couldn't control lights and was not receiving information about events (so any automations supposed to be triggered by these events didn't work). Recently I did some reconfiguration - deregistered webhooks, assigned all cameras to fixed IP addresses, uninstalled and installed the integration again (finding out that previously I had probably set wrong URL for HA instance which made events not getting through - but streaming was working fine) - and everything started to work. After about a day I've lost streaming from 5 cameras.

I also use Ubiquiti AP's for WiFi, but restarting them didn't help

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

simowilso commented 2 months ago

Latest HA for me here, I have the same problem too. One camera was working, then mysteriously became unavailable in the integration.