Replies: 3 comments 5 replies
-
It took a few days but it happened again (seems less frequent now), however this time it seems to have happened when there were no recorded Frigate events at all. I went in to Frigate to look for any events around the time of the error and there's nothing. I have some full-time recording from the camera in question and exactly when the error occurred and nothing that seems like it could trigger an event happened (plus, no actual recorded event). It now seems slightly more plausible that either Home Assistant triggered the automation itself, or MQTT sent some kind of ghost event? Is there any remote chance that Frigate could send an MQTT event without recording an event? |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this issue, as the error hasn't shown up for a few days now and there's been ton of events that should have triggered it if it was related to my automation in any way. I have a feeling it was something in Home Assistant that a restart of HA or full restart of my container cleared out. |
Beta Was this translation helpful? Give feedback.
-
Think I have the same issue. Recently moved to home assistant core on docker.
config.yml py script
Lastly this error comes up. |
Beta Was this translation helpful? Give feedback.
-
What is your question:
Is there a the possibility that Frigate would send an MQTT event without an "after" state and/or an event id?
My Home Assistant automation starts like this:
and everything seems to work rather well, but every once in a while, I get these errors in HA logs:
Template variable warning: 'id' is undefined when rendering '{{ id }}'
. To make it more difficult to debug, due to the error, HA doesn't log an event entry so I can't check the JSON payload to see what's going on, so I'm totally in the dark.This is the first place I try to use
{{ id }}
in my automation - the beginning of my action sequence:If it matters, the automation is set to parallel mode. Any ideas why I'd be getting those errors saying id is undefined?
Beta Was this translation helpful? Give feedback.
All reactions