- id: garageport_anne_evening_close alias: Garageport Anne - luk kl. 21 med mulighed for annullering description: > Varsl kl. 21 og luk efter to minutter, medmindre brugeren annullerer eller porten lukkes i mellemtiden. Den eksisterende reminder er uændret. mode: single trigger: - platform: time at: "21:00:00" condition: - condition: state entity_id: binary_sensor.garageport state: "on" action: - service: notify.mobile_app_claus_iphone_15pro data: title: "Garageport" message: "Garageporten er åben og lukkes automatisk om 2 minutter. Tryk Annuller for at lade den stå åben." data: tag: garage_anne_evening_close actions: - action: CANCEL_GARAGE_ANNE_EVENING title: "Annuller" - wait_for_trigger: - platform: event event_type: mobile_app_notification_action event_data: action: CANCEL_GARAGE_ANNE_EVENING id: cancelled - platform: state entity_id: binary_sensor.garageport to: "off" id: closed timeout: "00:02:00" continue_on_timeout: true - service: notify.mobile_app_claus_iphone_15pro data: message: clear_notification data: tag: garage_anne_evening_close - choose: - conditions: - condition: template value_template: "{{ wait.trigger is not none }}" sequence: - stop: "Aftenlukning annulleret, eller porten er allerede lukket" - condition: state entity_id: binary_sensor.garageport state: "on" - service: cover.close_cover target: entity_id: cover.anne