logo smart home family kruse

Kruse Smart Home

Easy living in our smart home & Garden

How to add overview of triggered automations to a dashboard?

27 November 2022


1. Introduction

When automating your smart home with Home Assistant you will create a lot off automations. Monitoring and maintaining these Home Assistant automations can become a challenge. To overcome this it is possible to add cards to dashboards to provide an overview of triggered automations and disabled automations.

Overview of triggered automations on a Home Asssitant dashboard

At this moment there are no cards available which will provide this functionality out of the box and some manual configuration is required. Luckily this is not complicated. I got the code from the Home Assistant community forum and adapted it a little bit to only show triggered automations from the last 24 hours and list the actual time instead of the hours/minutes past.

2. Requirements

We will make use of the Mark Down card, which is by default available within the Home Assistant Lovelace UI dashboards and the code provided in this article.

3. Implementation

We will implement 2 Home Assistant dashboard cards:

  1. Triggered automations in the past 24 hours
  2. Disabled automations

The required steps are provided in the next 2 sections.

3.1 Triggered automations in the last 24 hours

Execute the following steps to setup the card to display the Home Assistant automations triggered in the past 24 hours:

  1. On the Home Assistant dashboard click on the button “Add card”displayed at the lower left of your screen and search for the Markdown card and select it.

  2. Enter a title for the card

  3. Delete the existing code from the content field by putting the cursor in the field, pressing the Ctrl-A (select all) and the Delete key.
  4. Copy the following code and past it in the content field.

  5. The theme part is not required. The preview will show the triggered automations.

  6. Click on the Save button.

The period for which the triggered automations are shown can be changed by updating the 86400 seconds (24 hours x 60 minutes x 60 seconds) in the following line of code:

So use 3600 seconds for one hour, 43200 for 12 hours, etc.

3. 2 Triggered automations for an area

Execute the same steps as in section 3.1, but use the following code:

Change the highlighted Bathroom in the area name you used for the automation. Check the name is exactly the same as used in the Area field for the automation (via information > settings for the specific automation).

3.3 Disabled automations

Execute the same steps as in section 3.1, but use the following code to display all disabled Home Assistant automations:

The final card will then look like the screen capture below.

Article by <a href="https://smarthome.familykruse.eu/author/iamjwk/" target="_self">Jan-Willem</a>

Article by Jan-Willem


Writen by the website owner


Submit a Comment

Your email address will not be published. Required fields are marked *