Files
Home-AssistantConfig/config/packages/alexa_media_player.yaml

17 lines
815 B
YAML
Raw Normal View History

######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
2020-06-07 14:29:26 -04:00
# 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.
# -------------------------------------------------------------------
######################################################################
2020-06-07 14:29:26 -04:00
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') }}