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

Notification - Repeat if Condition Not Met

$
0
0

I have this automation to notify me when my Litter Robot throws an error. Looking for some ideas, what’s the best way to have it notify me again after 4 hours the error has not been cleared?

alias: "Litter Robot Error Notification "
description: ""
triggers:
  - entity_id:
      - sensor.virlr401_status_code
    to:
      - csf
      - df1
      - df2
      - dfs
      - dhf
      - dpf
      - hpf
      - offline
      - otf
      - pd
      - scf
      - sdf
      - spf
      - p
    trigger: state
conditions: []
actions:
  - variables:
      status_code_mapping: |
        {{
          {
            "br": "Bonnet Removed",
            "ccc": "Clean Cycle Complete",
            "ccp": "Clean Cycle In Progress",
            "cd": "Cat Detected",
            "csf": "Cat Sensor Fault",
            "csi": "Cat Sensor Interrupted",
            "cst": "Cat Sensor Timing",
            "df1": "Drawer Almost Full - 2 Cycles Left",
            "df2": "Drawer Almost Full - 1 Cycle Left",
            "dfs": "Drawer Full",
            "dhf": "Dump + Home Position Fault",
            "dpf": "Dump Position Fault",
            "ec": "Empty Cycle",
            "hpf": "Home Position Fault",
            "off": "Off",
            "offline": "Offline",
            "otf": "Over Torque Fault",
            "p": "Paused, Possible Pinch",
            "pd": "Pinch Detect",
            "pwrd": "Powering Down",
            "pwru": "Powering Up",
            "rdy": "Ready",
            "scf": "Cat Sensor Fault At Startup",
            "sdf": "Drawer Full At Startup",
            "spf": "Pinch Detect At Startup"
          }
        }}
  - metadata: {}
    data:
      message: Litter Robot {{ status_code_mapping[trigger.to_state.state] }}
    action: notify.notify
mode: single

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107212

Trending Articles



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