question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automation not triggered after update to HA 0.115.2

See original GitHub issue

Hi all,

Event is detected and picture is boxed with the person detected, but automation is not triggered after upgrading to HA ver 0.115.2

This is what the event listener outputs:

Evento 11 disparado 16:03:
{
    "event_type": "deepstack.object_detected",
    "data": {
        "bounding_box": {
            "height": 0.603,
            "width": 0.2,
            "y_min": 0.341,
            "x_min": 0.167,
            "y_max": 0.944,
            "x_max": 0.367
        },
        "box_area": 0.121,
        "centroid": {
            "x": 0.267,
            "y": 0.643
        },
        "name": "person",
        "confidence": 99.28,
        "entity_id": "image_processing.deepstack_object_pta_principal"
    },
    "origin": "LOCAL",
    "time_fired": "2020-09-21T14:03:05.789906+00:00",
    "context": {
        "id": "2bd0bb20fc1311ea9a9753a8e891fd74",
        "parent_id": null,
        "user_id": null
    }
}

and the configuration of the automation trigger:

event_data:
  object: person
event_type: deepstack.object_detected
platform: event

It’s like the event data (object: person) doesn’t match the event payload anymore. It was working fine untill last update and automation works because other triggers (door sensors) make the automation start.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
speedst3rcommented, Sep 24, 2020

I’ve got my triggers working in 0.115.2, I had to change the event_data to name instead of object and separate each object type into its own trigger:

  trigger:
  - event_data:
      name: person
    event_type: deepstack.object_detected
    platform: event
  - event_data:
      name: car
    event_type: deepstack.object_detected
    platform: event
  - event_data:
      name: motorcycle
    event_type: deepstack.object_detected
    platform: event
  - event_data:
      name: truck
    event_type: deepstack.object_detected
    platform: event
0reactions
robmarkcolecommented, Nov 4, 2020

Fixed example automation in readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deconz_event stopped triggering simple automations after ...
Home Assistant Core release with the issue: 0.115.2; Last working ... my issue in not Deconz-issue as event can be seen in HA...
Read more >
Configuration - Home Assistant Community
Try this: Set up any new Automation. Try and use Sun as a trigger (sunrise or sunset) and you get this Error and...
Read more >
Automations and Templates — ESPHome
If compilation fails or something else is not working as expected with lambdas, it's always best to look at the generated C++ source...
Read more >
Using two sensors in triggers and conditions NEW in 2021.7
Besides Trigger IDs that were added in 2021.7, another not so big but very powerful improvement was added. Simple way to compare two...
Read more >
How to Combine BUTTONS and AUTOMATIONS in Home ...
This Home Assistant tutorial is about triggering automations using a custom button and making sure that the button shows the status of the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found