It appears if use the template method of filtering, I canāt apply options to the generated glance or chip. (see my example trying to apply the tap_action)
Iām trying to figure out what Iām doing wrong here applying the options a filter type of template.
Iāve tried this with mushroom āchipsā and no luck there either.
Iām trying to show recently turned off devices, and then just have a single tap to turn them back on if they were turned off by mistake and removed from a similar card that has only lights that are currently on.
Iāve tried everything I can think of and I need some help.
type: custom:auto-entities
view_layout:
grid-area: footer
show_empty: false
card:
type: glance
filter:
template: |
{% for light in states.light %}
{% if light.state == "off" and
as_timestamp(now()) - as_timestamp(light.last_changed) < 60
%}
{{ light.entity_id}},
{% endif %}
{% endfor %}
options:
tap_action:
action: toggle
sort:
method: last_updated
reverse: true
ignore_case: true
Edit: I should note this options section works for me when I use a include filter instead of a template filter.