Dahua Camera Integration gives Home Assistant Agent Warning

CliveS
Posts: 778
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Dahua Camera Integration gives Home Assistant Agent Warning

Post by CliveS »

I have just added the Dahua Camera Integration in HA and am now getting these warnings in the Indigo log

Code: Select all

4 Apr 2024 at 16:37:11
   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "VideoMotion", "action": "Start", "index": "0", "data": {"Id": [0], "RegionName": ["Region1"], "SmartMotionEnable": true}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:11.996479+00:00", "context": {"id": "01HTMW3H1WKP284RM9VKV8TMQY", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionVehicle", "action": "Start", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"Rect": [2728, 1608, 4016, 2544], "VehicleID": 29633}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:13.314700+00:00", "context": {"id": "01HTMW3JB211SX3BKXQMBVYF7R", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionVehicle", "action": "Stop", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"Rect": [2728, 1608, 4016, 2544], "VehicleID": 29633}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:27.393502+00:00", "context": {"id": "01HTMW4031EMTQQXEAX2ZD4TE6", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Start", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29635, "Rect": [512, 1880, 1632, 6640]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:28.204161+00:00", "context": {"id": "01HTMW40WCHVJ3WD4RX34DVVW0", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Stop", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29635, "Rect": [512, 1880, 1632, 6640]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:35.434160+00:00", "context": {"id": "01HTMW47YAMQCB9CYRPKWJW8JN", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "VideoMotion", "action": "Stop", "index": "0", "data": {"Id": [0], "RegionName": ["Region1"], "SmartMotionEnable": true}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:36.409193+00:00", "context": {"id": "01HTMW48WSTSGA6X6JB7CN3BBV", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "VideoMotion", "action": "Start", "index": "0", "data": {"Id": [0], "RegionName": ["Region1"], "SmartMotionEnable": true}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:52.123494+00:00", "context": {"id": "01HTMW4R7V67QX40C1J5SYMT4W", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Start", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29637, "Rect": [3184, 2320, 5176, 8184]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:53.841671+00:00", "context": {"id": "01HTMW4SXHGW82QMZ3P9VMDDC6", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Stop", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29637, "Rect": [3184, 2320, 5176, 8184]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:58.419969+00:00", "context": {"id": "01HTMW4YCK6WKX6012EE6V6XJB", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Start", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29637, "Rect": [2256, 1728, 3504, 7408]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:37:59.949365+00:00", "context": {"id": "01HTMW4ZWDE41JMW9JYFKZCC0P", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionHuman", "action": "Stop", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"HumamID": 29637, "Rect": [2256, 1728, 3504, 7408]}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:38:08.418410+00:00", "context": {"id": "01HTMW58521ZS87VXM98TKPD5R", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionVehicle", "action": "Start", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"Rect": [1520, 1640, 3224, 4400], "VehicleID": 29633}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:38:11.507898+00:00", "context": {"id": "01HTMW5B5KPCTJPKJN96BJFVQM", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "SmartMotionVehicle", "action": "Stop", "index": "0", "data": {"RegionName": ["Region1"], "WindowId": [0], "object": [{"Rect": [1520, 1640, 3224, 4400], "VehicleID": 29633}]}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:38:28.421019+00:00", "context": {"id": "01HTMW5VP5NRHV9YMWAF6HPVDC", "parent_id": null, "user_id": null}}, "id": 1}

   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "dahua_event_received", "data": {"Code": "VideoMotion", "action": "Stop", "index": "0", "data": {"Id": [0], "RegionName": ["Region1"], "SmartMotionEnable": true}, "name": "Front Door", "DeviceName": "Front Door"}, "origin": "LOCAL", "time_fired": "2024-04-04T15:38:28.431224+00:00", "context": {"id": "01HTMW5VPFES6T5S2FHMNQE1E0", "parent_id": null, "user_id": null}}, "id": 1}
CliveS

Indigo 2023.2.0 : macOS Sonoma 14.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
User avatar
FlyingDiver
Posts: 7305
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Dahua Camera Integration gives Home Assistant Agent Warn

Post by FlyingDiver »

Yeah, I need to either add that event to the ignore list or just skip those warnings totally.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
CliveS
Posts: 778
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Dahua Camera Integration gives Home Assistant Agent Warn

Post by CliveS »

I personally don't use them, I only use the video on the HA Dashboards, but others may use them as motion triggers in Indigo.

Considering 6 months ago I was so anti Home Assistant I now find it so useful in so many ways and HAA was the icing on the cake to bring in all sorts of devices into Indigo but as for using it as home automation software, to much bother to learn.
CliveS

Indigo 2023.2.0 : macOS Sonoma 14.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
User avatar
FlyingDiver
Posts: 7305
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Dahua Camera Integration gives Home Assistant Agent Warn

Post by FlyingDiver »

The problem is that every integration in HA can define their own events, so it's very hard to code HAA to deal with them intelligently. I do handle the specific action events you can generate in an HA automation, so there's a way to get events to Indigo now. But in general I would discourage trying to actually do events in HA.

I'm testing an update to HAA to get rid of all those messages.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
CliveS
Posts: 778
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Dahua Camera Integration gives Home Assistant Agent Warn

Post by CliveS »

I can completely understand that, especially when you see all the integrations available with HA.
I await the addition to the 'too noisy' ignore list
CliveS

Indigo 2023.2.0 : macOS Sonoma 14.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
Post Reply

Return to “Home Assistant Agent”