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

Detect open cover after restart of HA

$
0
0

Hi Community,

I’m running an automation to remind me in case of an open garage door:

- id: alarm_garage
  alias: Alarm Garage
  trigger:
  - platform: state
    entity_id: binary_sensor.garage
    to: 'on'
    for: 00:10:00
  condition: []
  action:
  - service: camera.snapshot
    data:
      entity_id: camera.garage
      filename: /media/garage.jpg
  - service: notify.garage
    data:
      title: 'Alarm: Garage'
      message: Garage is open for 10 minutes
      target:
      - xxx@xxx.com
      data:
        images:
        - /media/garage.jpg

Its working fine but doesn’t react when the cover was opened during restart of HA (e.g. during an update). So I guess it doesn’t care when HA starts and the garage status is already “on”.
Any simple solution to remind me of an open garage that was opened during restart of HA?

Thank you a lot in advance and kind regards
Benedikt

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>