hi,
using the auto-entities card I’d like to template the lightning strikes of let’s say the last hour (if they exist in the first place). The integration wwlln creates strikes and although we are supposed to be able to set radius and window, I haven’t been able to see that in effect, and now use the integration via the configuration settings, which doesn’t have that option.
So I now have 80 95 strikes in my states, most of them old…I’d like to only show the most recent.
using this:
- type: custom:auto-entities
show_empty: false
card:
type: entities
show_header_toggle: false
title: Lightning strikes
filter:
include:
- entity_id: sensor.count_lightning_strikes
- attributes:
source: 'wwlln'
state: "< 50"
where the state filter at least narrows it down somewhat.
as an example the strikes are formatted like this:
{{states.geo_location.lightning_strike_1643410}}
and have these attributes
<template state geo_location.lightning_strike_1643410=60.2; latitude=51.86, longitude=5.16, source=wwlln, external_id=1643410, attribution=Data provided by the WWLLN, publication_date=2019-08-27T18:25:08+02:00, unit_of_measurement=km, friendly_name=Lightning Strike: 1643410, icon=mdi:flash, custom_ui_state_card=state-card-custom-ui @ 2019-08-27T19:01:37.077341+02:00>
and as last_changed:
need some help finding the correct template, and way to write that in the format of the auto-entities card.
Please have a look.