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

17 lines
732 B
YAML
Raw Normal View History

2020-06-07 14:29:26 -04:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Alexa Media Player - Sensors and notifications via Alexa Media integration.
2020-06-07 14:29:26 -04:00
#-------------------------------------------
######################################################################
## Track Alexa media state and expose routine/command triggers.
######################################################################
2020-06-07 14:29:26 -04:00
sensor:
- platform: template
sensors:
last_alexa:
value_template: >
2024-09-18 18:05:53 +00:00
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first | default('none') }}
2020-06-07 14:29:26 -04:00
#-------------------------------------------