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.

Does not trigger HomeKit Automation when triggered

See original GitHub issue

Describe the bug

I have created a very simple setup:

  • The plugin is setup with “Off” and “Away” modes only, the global siren switch is enabled.
  • One HomeKit automation triggers the siren if a motion sensor detects motion
  • One HomeKit automation plays sound on my HomePod when the security system is triggered

Both automations work on their own. However, enabling the siren switch, does not set off the “when security system is triggered” automation. I get a notification that the alarm system was triggered and it shows as triggered in HomeKit, but the automation never fires. I can’t see an issue with my setup, so I suspect, it must be the plugin

To Reproduce

Steps to reproduce the behavior:

  1. Setup plugin with “Off” and “Away” modes only and enable the global siren switch
  2. Create a HomeKit automation which turn on the siren switch if a motion sensor detects motion and test it -> Test it, it should trigger the alarm system
  3. Create a HomeKit automation which does something when the security system is triggered -> Test it, it should trigger whatever was configured
  4. Turn on the siren switch which triggers the alarm system

Expected behavior

Step 4 correctly sets off the alarm system. It should also execute the automation described in step 3. But that never happens.

Plugin’s configuration

{
      "name": "Sicherheitssystem",
      "default_mode": "Off",
      "arm_seconds": 0,
      "trigger_seconds": 0,
      "reset_minutes": 5,
      "audio": false,
      "audio_language": "en-US",
      "save_state": true,
      "proxy_mode": false,
      "test_mode": false,
      "override_off": false,
      "night_trigger_delay": false,
      "reset_off_flow": false,
      "disabled_modes": [
          "Home",
          "Night"
      ],
      "siren_sensor": false,
      "siren_sensor_seconds": 5,
      "reset_sensor": false,
      "mode_switches": false,
      "mode_off_switch": false,
      "mode_away_extended_switch": false,
      "mode_pause_switch": false,
      "pause_minutes": 0,
      "arming_lock_switch": false,
      "siren_switch": true,
      "siren_mode_switches": false,
      "double_knock": false,
      "double_knock_seconds": 90,
      "audio_volume": "100",
      "audio_arming_looped": false,
      "audio_alert_looped": false,
      "accessory": "security-system"
  }

Additional context

None

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lukasmalkmuscommented, Jul 5, 2021

My fix came right after GitHub Bot closed this: I used an IKEA motion sensor previously. They got an update last week (well, the Gateway) and it seems to resolve some issues with HomeKit. Now my alarm is triggered correctly!

1reaction
lukasmalkmuscommented, Jun 7, 2021

I’m. so sorry, I wasn’t able to do it yet. I’ll do it by the end of this week! I have and Apple TV 4K and a HomePod mini as Home Hub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Homekit Automations Will Not Trigger - Apple Community
It seems like while my existing automations are working, no new automations would trigger. I can set it up, it tests fine, but...
Read more >
HomeKit automations not triggering - Reddit
One of my most important automations is an eve flood sensor and right now I'm not confident it will trigger if water is...
Read more >
HomeKit automations not working or broken after iOS 16 update
Many iOS 16 users are facing an issue where HomeKit automations are not working or broken, but there's a workaround.
Read more >
HomeKit 16.x on my hubs (Apple TV 4th gen and HomePod ...
I can control accessories and scenes successfully both on-site and remotely. But not a single HomeKit automation is getting triggered.
Read more >
HomeKit Automation Guide - Taking Automations Beyond the ...
The filters are similar to triggers being device state, sensor thresholds ... HomeKit does not overtly support these, but these are some ways...
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