Skip to content

HA_X automations triggers twice #46

@popy2k14

Description

@popy2k14

I have multiple automations which triggers on the HA_X triggers (like sunrise (see at the bottom)) with an -20 min offset.
In all my HA_X automations i have implemented that the HA_X switch is turned off as first action.

It happens that every HA_X automation is triggered twice, exactly 30 seconds later, see:

Image

@Skons:
How do you handle turning off the HA_X switches after triggering (so they can trigger again on the "on" event)?
Can you please try to reproduce the issue?

P.S.: Have not investigate the issue further, will do so when i find time.

Thank you

alias: Sonnenaufgang
description: ""
triggers:
  - trigger: state
    entity_id:
      - switch.schlafzimmer_wecker_XXXX_home_assistant_1_on
    from: "off"
    to: "on"
conditions:
  - condition: state
    entity_id: light.schlafzimmer_nachtlicht_XXXX
    state: "off"
    enabled: true
  - condition: state
    entity_id: input_boolean.bed_occupied
    state: "on"
    enabled: true
  - condition: state
    entity_id: binary_sensor.schlafzimmer_bed_presence_bed_occupied_left
    state: "on"
    enabled: true
actions:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.schlafzimmer_wecker_XXXX_home_assistant_1_on
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions