@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