I have an automation setup that listens for dahua_event_received events.
So far, all dahua_event_received events except one came with the correct format. However, there was a single event where trigger.event.data.data was sent as a string (JSON), and my automation could not process it - it expected the object to be sent, not a "flat" string. This is strange - both events are posted below.
Below I am pasting two automation traces: first one where valid event was received and the second one with malformed data.
The correct event that is usually fired by this dahua integration:
I have an automation setup that listens for
dahua_event_received
events.So far, all
dahua_event_received
events except one came with the correct format. However, there was a single event wheretrigger.event.data.data
was sent as astring
(JSON), and my automation could not process it - it expected the object to be sent, not a "flat" string. This is strange - both events are posted below.Below I am pasting two automation traces: first one where valid event was received and the second one with malformed
data
.The correct event that is usually fired by this dahua integration:
The malformed event that was sent once by this dahua integration: (notice difference in key
trigger.event.data.data
between this and above event)