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

My "restart cam when becoming unavailable" automation does not work...help

$
0
0

Hello all…

I have a somewhat flaky ip cam…that needs to be restarted once in a while…
So i thought i create an automation that checks if cam is having status “unavailable” and restarts it via “smart” outlet.
BUT…for some reason, my automation doesnt see the status or doesnt care…
Can anyone take a look and let me know what part i am missing?!

alias: Switch_Restart_BackyardCam
description: ""
triggers:
  - entity_id:
      - camera.backyard_cam
    for:
      hours: 0
      minutes: 0
      seconds: 30
    trigger: state
    attribute: Unavailable
conditions: []
actions:
  - type: turn_off
    device_id: 16ca6cd625032cf41316c62764c5bb16
    entity_id: 5c3122452470b3d17e59fa16b3dcf889
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - type: turn_on
    device_id: 16ca6cd625032cf41316c62764c5bb16
    entity_id: 5c3122452470b3d17e59fa16b3dcf889
    domain: switch
mode: single

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105960

Trending Articles



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