Skip to content

netatmo event no longer contains e.g. device ID and snapshot URL? (Presence Outdoor Camera) #61688

Description

@wivaku

The problem

In the past (2020?) Netatmo events in Home Assistant would consist of all the data shown in the Netatmo webhooks documentation.

Currently I only receive user_id and push_type, and am missing e.g. device_id and snapshot_url.
Device ID (MAC address) is needed so I can create the correct trigger based template motion entity.
And not sure about "type":"None", would expect something else than None (using either type or event_type).

Example old situation (from a 2020 test): HA netatmo_event data sent to Node-RED

{
	"camera_id": "70:ee:50:...",
	"device_id": "70:ee:50:...",
	"event_id": "5fe3...9a1a",
	"event_type": "human",
	"home_id": "5e45...de82",
	"home_name": "home",
	"message": "Person seen by camera voordeur",
	"push_type": "NOC-human",
	"snapshot_id": "5fe3...9a1b",
	"snapshot_key": "765a...44ec",
	"snapshot_url": "https://netatmocameraimage.blob.core.windows.net/production/5fe3...9a1b765a...44ec",
	"subevent_id": "3205...8058",
	"user_id": "5d44...0b1b",
	"vignette_id": "5fe3...9a1c",
	"vignette_key": "23c1...f589",
	"vignette_url": "https://netatmocameraimage.blob.core.windows.net/production/5fe3...9a1c23c1...f589"
}

Example new situation (using HA event listener):

{
    "event_type": "netatmo_event",
    "data": {
        "type": "None",
        "data": {
            "user_id": "5d44...0b1b",
            "user": {
                "id": "5d44...0b1b",
                "email": "myemail@gmail.com"
            },
            "push_type": "webhook_activation"
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-12-13T12:18:14.678169+00:00",
    "context": {
        "id": "cab1...13b8",
        "parent_id": null,
        "user_id": null
    }
}

So: type: "None" and data only contains user_id and push_type.

When using the Netatmo API directly (/getevents) I see more data:

{
	"id": "61b7...f8b9",
	"type": "outdoor",
	"time": 1639399687,
	"module_id": "70:ee:50:...",
	"video_id": "d841...8ffe",
	"video_status": "available",
	"subevents": [
		{
			"id": "c3b8...3c85",
			"type": "human",
			"time": 1639399687,
			"verified": true,
			"offset": 0,
			"snapshot": {
				"url": "https://netatmocameraimage.blob.core.windows.net/production/61b7...b18c"
			},
			"vignette": {
				"url": "https://netatmocameraimage.blob.core.windows.net/production/61b7...2848"
			},
			"message": "Persoon gezien"
		}
	]
},

What version of Home Assistant Core has the issue?

core-2021.12.1

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

Netatmo

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions