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.

Automations with "zone" trigger don't work anymore

See original GitHub issue

The problem

I have two automations that are triggered when I leave the house and when I return. They have worked faultlessly for more than a year until April. Since the May update, however, the automations are only triggered sporadically - sometimes one of them, but usually none at all. I can’t find a cause for this - the person’s status is still recognised correctly and the absence times are correct.

How can I find out why the automations no longer trigger?

What is version of Home Assistant Core has the issue?

2021.6.3 (issue first seen in 2021.5.x)

What was the last working version of Home Assistant Core?

2021.4.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

zone

Link to integration documentation on our website

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

Example YAML snippet

alias: Abwesend
description: ''
trigger:
  - entity_id: person.jens
    event: leave
    platform: zone
    zone: zone.home
condition:
  - condition: state
    entity_id: input_boolean.heating_mode_auto
    state: 'on'
action:
  - service: input_select.select_option
    target:
      entity_id: input_select.heating_mode
    data:
      option: abwesend/zeitgesteuert
mode: single



alias: Anwesend
description: ''
trigger:
  - entity_id: person.jens
    event: enter
    platform: zone
    zone: zone.home
condition:
  - condition: state
    entity_id: input_boolean.heating_mode_auto
    state: 'on'
action:
  - service: input_select.select_option
    target:
      entity_id: input_select.heating_mode
    data:
      option: anwesend/zeitgesteuert
mode: single

Anything in the logs that might be useful for us?

I don't think so

Additional information

Firefox_Screenshot_2021-06-12T20-09-22 017Z Firefox_Screenshot_2021-06-12T20-10-13 149Z Firefox_Screenshot_2021-06-12T20-11-14 151Z Firefox_Screenshot_2021-06-12T20-11-56 875Z Firefox_Screenshot_2021-06-12T20-11-42 067Z Firefox_Screenshot_2021-06-12T20-12-28 275Z

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:36 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
breticommented, Jul 7, 2021

This one works:

trigger:
  - platform: state
    entity_id: person.jens
    from: home

resp.

trigger:
  - platform: state
    entity_id: person.jens
    to: home

So it’s clearly related to the “zone” integration trigger.

2reactions
breticommented, Aug 22, 2021

Sorry, I didn’t try a zone-based trigger again. I don’t think there’s any point in trying again and again unless a developer looks at it and at least gives some tips on which log files might be relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zone Trigger for Automation not Triggering - Configuration
I've tried switching from person.xxxx to a device tracker but that didn't work either. My home zone is specified via yaml with a...
Read more >
Troubleshoot common issues with triggers - Power Automate
Find and fix issues when your flows won't run.
Read more >
Location based automations not working - am I missing ...
Hi, I'm trying to set location based automations, for example to trigger my robovac (connected via Homebridge) at 13:00 only when I am...
Read more >
Location Away mode not triggering - SmartThings Community
Away is triggered by all location devices (phones) leaving the site, Home is simply triggered by a device coming home, night set based...
Read more >
Automation Troubleshooting - Airtable Support
Two or more automations within the same base are conflicting with one another in a way that causes one automation to trigger another...
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