I want to make an automation without a trigger

I am working on an automation to alert me to check on my elderly father. He lives in a tiny house I built for him on my property. There is a living room/kitchen and a bedroom. I picked up a couple of MM wave sensors. 1 in each room. I am working on an automation to send me a notification to go check on him basically because I worry. He is not in the best health. I currently have 3 conditions. 1 to check for occupancy in the bedroom (and) check for occupancy in the Living/kitchen (and) his phone is at home. If both sensors become unoccupied for 1 hour and the phone is still at home I get a notification to go check on him. I am not thinking of any trigger basically because I just want it running 24/7/365.

alias: Check on dad
description: “”
triggers:
conditions:

  • condition: and
    conditions:
    • type: is_not_occupied
      condition: device
      device_id: 44c6b5deb3179bb1607eb90c95b7e1f7
      entity_id: 7f2622f2c5c30bb4aca09fc93b489a06
      domain: binary_sensor
      for:
      hours: 1
      minutes: 0
      seconds: 0
    • type: is_not_occupied
      condition: device
      device_id: fe3e376fe3f22375ac49c32cb8b0adb2
      entity_id: d8b85b8367967c7ddc4fb6e248bda780
      domain: binary_sensor
      for:
      hours: 1
      minutes: 0
      seconds: 0
    • condition: device
      device_id: 70acd038c98652ce2365ffafb5da4cd6
      domain: device_tracker
      entity_id: 354be2fa990d814aa181d06dcbe44a49
      type: is_home
      actions:
  • action: notify.mobile_app_james_leroys_iphone_11
    metadata: {}
    data:
    message: Check on dad
    mode: single
1 Like

The automation you have posted will never do anything. If there isn’t a trigger to initiate it, it will just sit there forever.

The normal method in HA is to use both sensors’ states as triggers and mirror them in the conditions, that way either value can start the automation and either can stop the actions from being executed.

If you just don’t want to do that, you could use a Time Pattern trigger to check the conditions at regular intervals. This isn’t generally recommended since it is usually less efficient.

Excellent idea! Thank you

Does this look right

alias: Check on dad
description: ""
triggers:
  - type: not_occupied
    device_id: 44c6b5deb3179bb1607eb90c95b7e1f7
    entity_id: 7f2622f2c5c30bb4aca09fc93b489a06
    domain: binary_sensor
    trigger: device
    for:
      hours: 1
      minutes: 0
      seconds: 0
  - type: not_occupied
    device_id: fe3e376fe3f22375ac49c32cb8b0adb2
    entity_id: d8b85b8367967c7ddc4fb6e248bda780
    domain: binary_sensor
    trigger: device
    for:
      hours: 1
      minutes: 0
      seconds: 0
conditions:
  - condition: device
    device_id: 70acd038c98652ce2365ffafb5da4cd6
    domain: device_tracker
    entity_id: 354be2fa990d814aa181d06dcbe44a49
    type: is_home
actions:
  - action: notify.mobile_app_james_leroys_iphone_11
    metadata: {}
    data:
      message: Check on dad
mode: single

It’s hard to say as you have not formatted the post correctly for the forum. Use the </> button or do this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Sorry this is my first post. Thank you for the tip

You need to mirror the triggers in the condition block so that they are both checked on each run.

Like this

alias: Check on dad
description: ""
triggers:
  - type: not_occupied
    device_id: 44c6b5deb3179bb1607eb90c95b7e1f7
    entity_id: 7f2622f2c5c30bb4aca09fc93b489a06
    domain: binary_sensor
    trigger: device
    for:
      hours: 1
      minutes: 0
      seconds: 0
  - type: not_occupied
    device_id: fe3e376fe3f22375ac49c32cb8b0adb2
    entity_id: d8b85b8367967c7ddc4fb6e248bda780
    domain: binary_sensor
    trigger: device
    for:
      hours: 1
      minutes: 0
      seconds: 0
conditions:
  - condition: and
    conditions:
      - condition: device
        device_id: 70acd038c98652ce2365ffafb5da4cd6
        domain: device_tracker
        entity_id: 354be2fa990d814aa181d06dcbe44a49
        type: is_home
      - type: is_not_occupied
        condition: device
        device_id: 44c6b5deb3179bb1607eb90c95b7e1f7
        entity_id: 7f2622f2c5c30bb4aca09fc93b489a06
        domain: binary_sensor
        for:
          hours: 1
          minutes: 0
          seconds: 0
      - type: is_not_occupied
        condition: device
        device_id: fe3e376fe3f22375ac49c32cb8b0adb2
        entity_id: d8b85b8367967c7ddc4fb6e248bda780
        domain: binary_sensor
        for:
          hours: 1
          minutes: 0
          seconds: 0
actions:
  - action: notify.mobile_app_james_leroys_iphone_11
    metadata: {}
    data:
      message: Check on dad
mode: single

Yes, though you don’t need the And… it won’t hurt anything, it’s just unnecessary.

Thank you for the help.