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

List all automations not used (triggered) in a long time

$
0
0

@boneheadfraggle wrote:

I have a sensor that show all entities that are unavailable. Mostly to track any zigbee devices not responding or that someone switched off physically. That sensor works great. Thanks to @petro for that one!

   unavailable:
     friendly_name: 'Enheter utan data'
     value_template: >
       {{ states | selectattr('state', 'in', ['unavailable', 'unknown', 'none']) | list | length }}
     entity_id: sensor.time
     attribute_templates:
       entities: >
         {{ states | selectattr('state', 'in', ['unavailable', 'unknown', 'none']) | map(attribute='entity_id') | list | join('\n') }}

Now I’d like track unused automations the same way, with a sensor, counting the number of automation whose last_triggered is for example “now() - 6 weeks”. With the automations fulfilling this criteria in an attribute to that sensor.

Any suggestions?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95480

Trending Articles



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