From 9752103e55eb4b34936e5da240d6069cf9e34e3c Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Fri, 7 Feb 2025 17:03:37 +0000 Subject: [PATCH] Let's turn the outside lights the color of the team that just scored too #1502 --- config/automation/flash_all.yaml | 31 ++++++++++++++----------------- config/packages/superbowl.yaml | 13 ++++++++++++- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/config/automation/flash_all.yaml b/config/automation/flash_all.yaml index 98c50100..5b28606f 100755 --- a/config/automation/flash_all.yaml +++ b/config/automation/flash_all.yaml @@ -15,23 +15,6 @@ data: flash: long - - service: input_boolean.turn_off - entity_id: input_boolean.flash - -- alias: 'Flash Timer Lights' - id: caac7e80-6f43-4029-ad40-420e70f67cd7 - trigger: - - platform: state - entity_id: input_boolean.flash - to: 'on' - from: 'off' - - platform: event - #Sent from IFTTT Webhooks : {"action":"Flash_Timer"} - event_type: ifttt_webhook_received - event_data: - action: Flash_Timer - - action: - service: light.turn_on entity_id: - light.bedroom @@ -44,6 +27,20 @@ - light.office_lamp - light.main_slider - light.garage_attic + - light.bedroom_lights + - light.den_2 + - light.den1 + - light.dinette_lights + - light.dining_room_lights + - light.foyer + - light.garage_lights + - light.hallway_lights + - light.kitchen_lights + - light.living_room_accents + - light.living_room_lights + - light.office_lights + - light.upstairs_lights + - light.garage_hallway # - light.den_lamp data: flash: long diff --git a/config/packages/superbowl.yaml b/config/packages/superbowl.yaml index 8c80549d..8fcf6ae0 100755 --- a/config/packages/superbowl.yaml +++ b/config/packages/superbowl.yaml @@ -1,6 +1,5 @@ #------------------------------------------- # Setting up some fun flash lights if anyone scores in the superbowl. Will need to update the sensors each year though. - # @CCOSTAN # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # https://github.com/CCOSTAN/Home-AssistantConfig/issues/1502# @@ -22,3 +21,15 @@ automation: - service: input_boolean.turn_on target: entity_id: input_boolean.flash + - service: light.turn_on + target: + entity_id: light.outdoor_front_lights + data: + rgb_color: > + {% if trigger.entity_id == 'sensor.team_tracker_phi' %} + [0, 255, 0] + {% else %} + [255, 0, 0] + {% endif %} + +