mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-19 07:47:27 +00:00
Turn onthe AMPs if music starts streaming! and then off.
This commit is contained in:
parent
11ca15ba73
commit
fec6c0e51d
@ -44,6 +44,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt
|
|||||||
* Rainy days trigger extra light inside the house.
|
* Rainy days trigger extra light inside the house.
|
||||||
* Detects when lights are turned on and adjusts them to correct brightness based on time of day.
|
* Detects when lights are turned on and adjusts them to correct brightness based on time of day.
|
||||||
* Leverage Alexa, IFTTT and Elekcity outlet to control Printer On/Off via Voice. Turns off automatically after 20 minutes.
|
* Leverage Alexa, IFTTT and Elekcity outlet to control Printer On/Off via Voice. Turns off automatically after 20 minutes.
|
||||||
|
* Turn on AMPs when Chromecast reports 'Playing'. Turn them off when we are done streaming music.
|
||||||
* (IFTTT) Blink ALL lights at 9:30 to remind me to take medicine. (also Alexa Alert)
|
* (IFTTT) Blink ALL lights at 9:30 to remind me to take medicine. (also Alexa Alert)
|
||||||
* (IFTTT) Blink Office lights 15 minutes before ANY meeting on my calendar (using IFTTT)
|
* (IFTTT) Blink Office lights 15 minutes before ANY meeting on my calendar (using IFTTT)
|
||||||
* (IFTTT) Stop watering grass via Rachio if winds are greater than 20 MPH.
|
* (IFTTT) Stop watering grass via Rachio if winds are greater than 20 MPH.
|
||||||
|
@ -1,23 +1,38 @@
|
|||||||
###################################
|
###################################
|
||||||
## Turn on/off Living Room AMPs via ALexa/IFTTT event.
|
## Turn on/off Living Room AMPs via ALexa/IFTTT event.
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
- alias: 'IFTTT Turn AMP on'
|
- alias: 'IFTTT Turn AMP on'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: amp_on
|
event_type: amp_on
|
||||||
|
- platform: state
|
||||||
action:
|
entity_id: media_player.whole_house
|
||||||
- service: switch.turn_on
|
from: 'off'
|
||||||
entity_id: switch.living_room_amp
|
to: 'playing'
|
||||||
|
- platform: state
|
||||||
|
entity_id: media_player.livingroomcc
|
||||||
- alias: 'IFTTT Turn AMP off'
|
from: 'off'
|
||||||
trigger:
|
to: 'playing'
|
||||||
- platform: event
|
action:
|
||||||
event_type: amp_off
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.living_room_amp
|
||||||
action:
|
|
||||||
- service: switch.turn_off
|
|
||||||
entity_id: switch.living_room_amp
|
- alias: 'IFTTT Turn AMP off'
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: amp_off
|
||||||
|
- platform: state
|
||||||
|
entity_id: media_player.whole_house
|
||||||
|
from: 'playing'
|
||||||
|
to: 'off'
|
||||||
|
- platform: state
|
||||||
|
entity_id: media_player.livingroomcc
|
||||||
|
from: 'playing'
|
||||||
|
to: 'off'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: switch.living_room_amp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user