Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106602

Automation keeps running again and again

$
0
0

Hi all,

In automation below, I have the issue that my trigger entity jumps from off to on, multiple times (because the person walking to the front-door needs to walk 5s :-))
How can I make sure that my automation runs only once after entity trigger ?

- id: '1742217033737'
  alias: popup.webcamvoordeur
  description: ''
  triggers:
  - trigger: state
    entity_id:
    - binary_sensor.g4_pro_person_detected
  conditions: []
  actions:
  - action: media_player.play_media
    metadata:
      title: dingdong.mp3
      thumbnail:
      media_class: music
      children_media_class:
      navigateIds:
      - {}
      - media_content_type: app
        media_content_id: media-source://media_source
    data:
      media_content_id: media-source://media_source/local/dingdong.mp3
      media_content_type: audio/mpeg
    target:
      entity_id: media_player.lenovo_tab_m11
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - action: tts.speak
    metadata: {}
    data:
      cache: true
      media_player_entity_id: media_player.lenovo_tab_m11
      message: Er is iemand aan de voordeur
      language: nl_BE
    target:
      entity_id: tts.piper
  - action: browser_mod.popup
    metadata: {}
    data:
      dismissable: true
      autoclose: false
      browser_id:
      - 186985c47d5865c097004f6ea5179a01
      content:
        type: picture-entity
        camera_view: live
        entity: camera.g4_pro_high
#        camera_image: camera.g4_pro_high
        show_state: false
        show_name: true
      timeout: 15000
      size: wide
  mode: single

Thanks a lot !

Kr,

Bart

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106602

Trending Articles