mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 18:49:14 +00:00 
			
		
		
		
	Let's turn the outside lights the color of the team that just scored too #1502
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 %} | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user