Add in Alexa Last used Sensor. #768

This commit is contained in:
ccostan
2020-06-07 14:29:26 -04:00
parent f9094e57d4
commit 93c5bb6837
34 changed files with 441 additions and 233 deletions

View File

@@ -0,0 +1,33 @@
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Alexa Media Sensor Support - Relies on Custom Component
#-------------------------------------------
sensor:
- platform: template
sensors:
last_alexa:
entity_id:
- media_player.bedroom
- media_player.carlos_2nd_echo
- media_player.front_room_flex
- media_player.justin_room
- media_player.kitchen
- media_player.living_room
- media_player.master_bathroom
- media_player.master_bedroom
- media_player.office
- media_player.paige_room
- media_player.tap
- media_player.upstairs
value_template: >
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first }}
#-------------------------------------------
##############################################################################
### Automations - Detect when things are not right. Like any Good Watchdog.
##############################################################################
#automation:
#Tweets pushed out to twitter.