You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
815 B
17 lines
815 B
######################################################################
|
|
# @CCOSTAN - Follow Me on X
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# -------------------------------------------------------------------
|
|
# Alexa Media Player - Sensors and notifications via Alexa Media integration.
|
|
# Track Alexa media state and expose routine/command triggers.
|
|
# -------------------------------------------------------------------
|
|
######################################################################
|
|
|
|
template:
|
|
- sensor:
|
|
- name: "Last Alexa"
|
|
unique_id: last_alexa
|
|
state: >
|
|
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first | default('none') }}
|