WebHook - event_id often missing in WebHook messages from netatmo

apherren

in some events (e.g. connection or disconnection) i don't get the event_id in the payload.

{
  "user_id": "5ef60xxxxxxxxxxxxxxxxxxx",
  "event_type": "connection",
  "camera_id": "70:ee:50:xx:xx:xx",
  "device_id": "70:ee:50:bxx:xx:xx",
  "home_id": "5ef6031exxxxxxxxxxxxxxxxx",
  "home_name": "XXXXXX S",
  "push_type": "connection"
}

but here i get it

{
  "user_id": "5ef60xxxxxxxxxxxxxxxxxxx",
  "persons": [
    {
      "id": "a5563481-f364-4d52-xxxxxx-xxxxxxxxxxxx",
      "face_id": "62f7699xxxxxxxxxxxxxxxxxx",
      "face_key": "b2b0c1fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "is_known": true,
      "face_url": "xxxxxxxxxxxxxxxxxx"
    }
  ],
  "snapshot_id": "688bb6xxxxxxxxxxxxxxxxxxxxxxx",
  "snapshot_key": "e22990fcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "snapshot_url": "xxxxxxxx",
  "event_type": "person",
  "camera_id": "70:ee:50:xx:xx:xx",
  "device_id": "70:ee:50:xx:xx:xx",
  "home_id": "5f10xxxxxxxxxxxxxxxxxxxxxxx",
  "home_name": "XXXXXXX",
  "event_id": "688bxxxxxxxxxxxxxxxxxxxxxx",
  "message": "XXXX seen by XXXXX",
  "push_type": "NACamera-person"
}

is this normal? in the documentation the JSONs all have event_ids

0

Comments

6 comments

  • Comment author
    Leslie Community moderator

    Hello,

    If we refer to the documentation, there is indeed no event_id indication for the connection/disconnection event_type

     

    A refactoring of webhooks will be soon launched. Is it this data important for you ? What would be the usecase ?

    Have a good day,

    Leslie - Community Manager

     

    0
  • Comment author
    apherren

    sorry for the delay. 

    up to now i have the issue with the following event_types

    /connection
    /disconnection
    /light_mode
    /tag_big_move
    /tag_small_move

    the usecase: we store all events in a central data structure where the event_id is the key. this datastructure is filled with the webhook events and from time to time it is updated with /getevents to avoid that we miss them. we generate event_ids for the webhook calls above and it is sometimes (due to differences in timestamps) difficult to match those to the events we get through /getevents.

    0
  • Comment author
    Leslie Community moderator
    • Edited

    Hello,

    I confirm I don't have the info either in the webhook. I'll ask the question to the teams. Do you know or not if the event_type information for these 5 ones was previously included in the response ? 

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    apherren

    Hi, i am not sure about your question. the issue is not with the event_type but the with the event_id. the event_type is delivered.

    0
  • Comment author
    Leslie Community moderator

    Yes sorry, I meant event_id of course. Did you notice if it was in the response previously or not ?

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    apherren

    np. never seen it, but then i am not working with webhooks so long - around may or june.

    0

Please sign in to leave a comment.