Alert Integration with Time Trigger?

Hi guys,

I have this Alert integratiom yaml below to check if the windows are still open, which is working fine. However I want to do this check only at 7:30 PM. I can’t figure out how to do that part.

Is there anyone that can help? Many thanks.

alert:
  baby_window_open:
    name: Baby Window is Open
    message: "The baby windows are still open"
    done_message: "Baby Window closed"
    entity_id: binary_sensor.window_sensor_br_left_contact, binary_sensor.window_sensor_br_right_contact
    state: "on"
    repeat: 30
    can_acknowledge: true
    skip_first: true
    notifiers:
      - mobile_app_rey_s_phone
      - mobile_app_christina
    data:
      tag: baby-window

What you do for this use case is create a binary template with a trigger at 7:30 PM. The template expression evaluates the state of those two contacts and returns True if either are on. Then connect that new template to trigger the alert.

Hi Pete, thanks for the reply. Would you be able to write some YAML for the binary template? I haven’t used that in my system and not really sure the syntax.

These docs should help you get started.