Permalink
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Lighting Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Reset Exterior Garage Light Brightness when Garage Closed | |
| ########################################################## | |
| - alias: Lights - Reset Exterior Garage Light Brightness when Garage Closed | |
| id: 'lights_reset_exterior_garage_light_brightness_when_garage_closed' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'closed' | |
| for: | |
| hours: 0 | |
| minutes: 5 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_door_open_lights_on | |
| state: 'off' | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: light.garage_light | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.garage_light | |
| data: | |
| brightness_pct: 2 | |
| ########################################################## | |
| ## Turn On Exterior Garage Light when Garage Open | |
| ########################################################## | |
| - alias: Lights - Turn On Exterior Garage Light when Garage Open | |
| id: 'lights_turn_on_exterior_garage_light_when_garage_open' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'closed' | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_door_open_lights_on | |
| state: 'off' | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.garage_light | |
| data: | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Turn Off Interior Garage Light when Garage Closed | |
| ########################################################## | |
| - alias: Lights - Turn Off Interior Garage Light when Garage Closed | |
| id: 'lights_turn_off_interior_garage_light_when_garage_closed' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'closed' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_door_open_lights_on | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.garage_interior | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.garage_interior | |
| data: | |
| transition: 330 | |
| ########################################################## | |
| ## Turn On Interior Garage Light when Garage Open | |
| ########################################################## | |
| - alias: Lights - Turn On Interior Garage Light when Garage Open | |
| id: 'lights_turn_on_interior_garage_light_when_garage_open' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'closed' | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_door_open_lights_on | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.garage_interior | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.garage_interior | |
| data: | |
| brightness_pct: 100 | |
| transition: 14 | |
| ########################################################## | |
| ## Turn Off Exterior Garage Light After Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Exterior Garage Light After Midnight | |
| id: 'lights_turn_off_exterior_garage_light_after_midnight' | |
| trigger: | |
| - platform: state | |
| entity_id: light.garage_light | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 1 | |
| minutes: 0 | |
| seconds: 0 | |
| condition: | |
| - condition: time | |
| after: '00:00:00' | |
| before: '07:30:00' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.garage_light | |
| ########################################################## | |
| ## Turn On Exterior Garage Light at Sunset | |
| ########################################################## | |
| - alias: Lights - Turn On Exterior Garage Light at Sunset | |
| id: 'lights_turn_on_exterior_garage_light_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:15:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_on_sunset | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.garage_light | |
| data: | |
| brightness_pct: 2 | |
| ########################################################## | |
| ## Turn Off Exterior Garage Light at Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Exterior Garage Light at Midnight | |
| id: 'lights_turn_off_exterior_garage_light_at_midnight' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.garage_light | |
| ########################################################## | |
| ## Turn Off Exterior Garage Light at Midnight Friends Visiting Weekdays | |
| ########################################################## | |
| - alias: Lights - Turn Off Exterior Garage Light at Midnight Friends Visiting Weekdays | |
| id: 'lights_turn_off_exterior_garage_light_at_midnight_friends_visiting_weekdays' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: time | |
| weekday: | |
| - mon | |
| - tue | |
| - wed | |
| - thu | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.garage_light | |
| ########################################################## | |
| ## Turn On Front Porch Lights at Sunset | |
| ########################################################## | |
| - alias: Lights - Turn On Front Porch Lights at Sunset | |
| id: 'lights_turn_on_front_porch_lights_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:15:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_on_sunset | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_select.holiday | |
| state: 'None' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.front_porch | |
| data: | |
| transition: 900 | |
| brightness_pct: 50 | |
| color_temp: 447 | |
| ########################################################## | |
| ## Turn Off Front Porch Lights at Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Front Porch Lights at Midnight | |
| id: 'lights_turn_off_front_porch_lights_at_midnight' | |
| trigger: | |
| - platform: time | |
| at: '23:45:00' | |
| condition: | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_select.holiday | |
| state: 'None' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| data: | |
| transition: 900 | |
| - delay: '00:16:00' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| ########################################################## | |
| ## Turn Off Front Porch Lights After Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Front Porch Lights After Midnight | |
| id: 'lights_turn_off_front_porch_lights_after_midnight' | |
| trigger: | |
| - platform: state | |
| entity_id: light.front_porch | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 1 | |
| minutes: 0 | |
| seconds: 0 | |
| condition: | |
| - condition: time | |
| after: '00:00:00' | |
| before: '07:30:00' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_select.holiday | |
| state: 'None' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| data: | |
| transition: 300 | |
| - delay: '00:06:00' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| ########################################################## | |
| ## Turn Off Front Porch Lights After 2a | |
| ########################################################## | |
| - alias: Lights - Turn Off Front Porch Lights After 2a | |
| id: 'lights_turn_off_front_porch_lights_after_2a' | |
| trigger: | |
| - platform: state | |
| entity_id: light.front_porch | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 1 | |
| minutes: 0 | |
| seconds: 0 | |
| condition: | |
| - condition: time | |
| after: '00:00:00' | |
| before: '07:30:00' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| data: | |
| transition: 300 | |
| - delay: '00:06:00' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.front_porch | |
| ########################################################## | |
| ## Turn On Front Yard Lighting at Sunset | |
| ########################################################## | |
| - alias: Lights - Turn On Front Yard Lighting at Sunset | |
| id: 'lights_turn_on_front_yard_lighting_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:15:00' | |
| action: | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.front_yard_lighting | |
| ########################################################## | |
| ## Turn Off Front Yard Lighting at 3a | |
| ########################################################## | |
| - alias: Lights - Turn Off Front Yard Lighting at 3a | |
| id: 'lights_turn_off_front_yard_lighting_at_3a' | |
| trigger: | |
| - platform: time | |
| at: '03:00:00' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.front_yard_lighting | |
| ########################################################## | |
| ## Turn Off Front Yard Lighting after 3a | |
| ########################################################## | |
| - alias: Lights - Turn Off Front Yard Lighting after 3a | |
| id: 'lights_turn_off_front_yard_lighting_after_3a' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.front_yard_lighting | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 1 | |
| minutes: 0 | |
| seconds: 0 | |
| condition: | |
| - condition: time | |
| after: '03:00:00' | |
| before: '07:30:00' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.front_yard_lighting | |
| ########################################################## | |
| ## Turn On Back Door Lights at Sunset | |
| ########################################################## | |
| - alias: Lights - Turn On Back Door Lights at Sunset | |
| id: 'lights_turn_on_back_door_lights_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:15:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_on_sunset | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.back_door | |
| data: | |
| brightness_pct: 2 | |
| transition: 60 | |
| ########################################################## | |
| ## Turn Off Back Door Lights at Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Back Door Lights at Midnight | |
| id: 'lights_turn_off_back_door_lights_at_midnight' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| - delay: '00:00:90' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| ########################################################## | |
| ## Turn Off Back Door Lights at Midnight Weekdays Friends Visiting | |
| ########################################################## | |
| - alias: Lights - Turn Off Back Door Lights at Midnight Weekdays Friends Visiting | |
| id: 'lights_turn_off_back_door_lights_at_midnight_weekdays_friends_visiting' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'below_horizon' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: time | |
| weekday: | |
| - mon | |
| - tue | |
| - wed | |
| - thu | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| - delay: '00:00:90' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| ########################################################## | |
| ## Turn Off Backyard Lighting After Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Backyard Lighting After Midnight | |
| id: 'lights_turn_off_backyard_lighting_after_midnight' | |
| trigger: | |
| - platform: state | |
| entity_id: light.back_door | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 1 | |
| minutes: 0 | |
| seconds: 0 | |
| condition: | |
| - condition: time | |
| after: '00:00:00' | |
| before: '07:30:00' | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| - light.backyard_deck | |
| - light.backyard_patio | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.lower_backyard_lighting | |
| - switch.backyard_patio_lighting | |
| ########################################################## | |
| ## Turn Off Interior Lights at Sunrise | |
| ########################################################## | |
| - alias: Lights - Turn Off Interior Lights at Sunrise | |
| id: 'lights_turn_off_interior_lights_at_sunrise' | |
| trigger: | |
| - platform: sun | |
| event: 'sunrise' | |
| offset: '+00:45:00' | |
| condition: | |
| - condition: state | |
| entity_id: group.motion | |
| state: 'off' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: person.USER2 | |
| state: 'home' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - group.interior_lights | |
| ########################################################## | |
| ## Turn Off Exterior Lights at Sunrise | |
| ########################################################## | |
| - alias: Lights - Turn Off Exterior Lights at Sunrise | |
| id: 'lights_turn_off_exterior_lights_at_sunrise' | |
| trigger: | |
| - platform: sun | |
| event: 'sunrise' | |
| offset: '+00:15:00' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - group.exterior_lights | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.lower_backyard_lighting | |
| - switch.backyard_patio_lighting | |
| - switch.front_yard_lighting | |
| - delay: '00:02:00' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.back_door | |
| ########################################################## | |
| ## Turn On Backyard Lighting at Sunset | |
| ########################################################## | |
| - alias: Lights - Turn On Backyard Lighting at Sunset | |
| id: 'lights_turn_on_backyard_lighting_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:15:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_on_sunset | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.vacation_mode | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: switch.turn_on | |
| entity_id: | |
| - switch.backyard_patio_lighting | |
| - switch.lower_backyard_lighting | |
| - service: light.turn_on | |
| entity_id: | |
| - light.backyard_patio | |
| - light.backyard_deck | |
| data: | |
| brightness_pct: 2 | |
| ########################################################## | |
| ## Turn Off Backyard Lighting at Midnight | |
| ########################################################## | |
| - alias: Lights - Turn Off Backyard Lighting at Midnight | |
| id: 'lights_turn_off_backyard_lighting_at_midnight' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: not | |
| conditions: | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.lower_backyard_lighting | |
| - switch.backyard_patio_lighting | |
| - service: light.turn_off | |
| entity_id: | |
| - light.backyard_patio | |
| - light.backyard_deck | |
| - delay: '00:00:90' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.backyard_patio | |
| - light.backyard_deck | |
| ########################################################## | |
| ## Turn Off Backyard Lighting At Midnight Weekedays Friends Visiting | |
| ########################################################## | |
| - alias: Lights - Turn Off Backyard Lighting At Midnight Weekedays Friends Visiting | |
| id: 'lights_turn_off_backyard_lighting_at_midnight_weekdays_friends_visiting' | |
| trigger: | |
| - platform: time | |
| at: '00:00:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_exterior_off_night | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.friends_and_family | |
| state: 'home' | |
| - condition: time | |
| weekday: | |
| - mon | |
| - tue | |
| - wed | |
| - thu | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.lower_backyard_lighting | |
| - switch.backyard_patio_lighting | |
| - service: light.turn_off | |
| entity_id: | |
| - light.backyard_patio | |
| - light.backyard_deck | |
| - delay: '00:00:90' | |
| - service: light.turn_off | |
| entity_id: | |
| - light.backyard_patio | |
| - light.backyard_deck | |
| ########################################################## | |
| ## Media Center Lighting Random Color Every 30 mins | |
| ########################################################## | |
| - alias: Lights - Media Center Lighting Random Color Every 30 Mins | |
| id: 'lights_media_center_lighting_random_color_every_30_mins' | |
| trigger: | |
| - platform: time_pattern | |
| minutes: '/30' | |
| condition: | |
| - condition: state | |
| entity_id: light.media_center_lighting | |
| state: 'on' | |
| - condition: state | |
| entity_id: input_boolean.livingroom_rainbow | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.interior_holiday | |
| state: 'off' | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.media_center_lighting | |
| data: | |
| effect: random | |
| transition: 300 | |
| ########################################################## | |
| ## Set Globe Color Temp | |
| ########################################################## | |
| - alias: Lights - Set Globe Color Temp | |
| id: 'lights_set_globe_color_temp' | |
| trigger: | |
| - platform: state | |
| entity_id: light.globe | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.livingroom_rainbow | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.interior_holiday | |
| state: 'off' | |
| - condition: state | |
| entity_id: alarm_control_panel.alarm | |
| state: 'disarmed' | |
| - condition: or | |
| conditions: | |
| - condition: state | |
| entity_id: binary_sensor.basement_drain_water_sensor_liquid_detected | |
| state: 'off' | |
| - condition: state | |
| entity_id: binary_sensor.kitchen_sink_water_sensor | |
| state: 'off' | |
| - condition: state | |
| entity_id: binary_sensor.bathroom_sink_water_sensor | |
| state: 'off' | |
| - condition: state | |
| entity_id: binary_sensor.upstairs_bathrooom_water_sensor | |
| state: 'off' | |
| - condition: state | |
| entity_id: binary_sensor.utility_sink_water_sensor | |
| state: 'off' | |
| - condition: state | |
| entity_id: binary_sensor.washing_machine_water_sensor | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.globe | |
| data: | |
| color_temp: 366 | |
| ########################################################## | |
| ## Turn On Guest Bedroom Lamp when Ceiling is On | |
| ########################################################## | |
| - alias: Lights - Turn On Guest Bedroom Lamp when Ceiling is On | |
| id: 'lights_turn_on_guest_bedroom_lamp_when_ceiling_is_on' | |
| trigger: | |
| - platform: state | |
| entity_id: light.guest_bedroom_ceiling | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: light.guest_bedroom_nightstand | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.guest_bedroom_nightstand | |
| data: | |
| brightness_pct: 50 | |
| ########################################################## | |
| ## Turn Off Guest Bedroom Lamp when Ceiling is Off | |
| ########################################################## | |
| - alias: Lights - Turn Off Guest Bedroom Lamp when Ceiling is Off | |
| id: 'lights_turn_off_guest_bedroom_lamp_when_ceiling_is_off' | |
| trigger: | |
| - platform: state | |
| entity_id: light.guest_bedroom_ceiling | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: light.guest_bedroom_nightstand | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.guest_bedroom_nightstand | |
| ########################################################## | |
| ## Turn On Basement Lights when Workbench Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn On Basement Lights when Workbench Switch Used | |
| id: 'lights_turn_on_basement_lights_when_workbench_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.work_bench_light | |
| from: 'off' | |
| to: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_lights | |
| - light.laundry_room_light | |
| - light.basement_stairs | |
| - light.basement_storage_area_ceiling | |
| - light.craft_room_ceiling | |
| data: | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Turn On Basement Lights when Laundry Room Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn On Basement Lights when Laundry Room Switch Used | |
| id: 'lights_turn_on_basement_lights_when_laundry_room_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.laundry_room_light | |
| from: 'off' | |
| to: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_lights | |
| - light.basement_stairs | |
| - light.basement_storage_area_ceiling | |
| - light.craft_room_ceiling | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.work_bench_light | |
| data: | |
| brightness_pct: 25 | |
| ########################################################## | |
| ## Turn Off Basement Lights when Laundry Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn Off Basement Lights when Laundry Switch Used | |
| id: 'lights_turn_off_basement_lights_when_laundry_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.laundry_room_light | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: light.basement_lighting | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.basement_light_3 | |
| - light.basement_light_4 | |
| - light.work_bench_light | |
| - light.craft_room_ceiling | |
| - light.basement_storage_area_ceiling | |
| - light.craft_room_ceiling | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_light_1 | |
| - light.basement_light_2 | |
| - light.basement_stairs | |
| data: | |
| brightness_pct: 25 | |
| ########################################################## | |
| ## Turn Off Basement Stair Light when Laundry Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn Off Basement Stair Light when Laundry Switch Used | |
| id: 'lights_turn_off_basement_stair_light_when_laundry_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.laundry_room_light | |
| from: 'on' | |
| to: 'off' | |
| for: | |
| hours: 0 | |
| minutes: 2 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: light.basement_lighting | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.basement_light_1 | |
| - light.basement_light_2 | |
| - light.basement_stairs | |
| ########################################################## | |
| ## Turn Off Basement Lights when Work Bench Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn Off Basement Lights when Work Bench Switch Used | |
| id: 'lights_turn_off_basement_lights_when_work_bench_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.work_bench_light | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: light.basement_lighting | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.basement_light_3 | |
| - light.basement_light_4 | |
| - light.laundry_room_light | |
| - light.craft_room_ceiling | |
| - light.basement_storage_area_ceiling | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_light_1 | |
| - light.basement_light_2 | |
| - light.basement_stairs | |
| data: | |
| brightness_pct: 25 | |
| ########################################################## | |
| ## Turn Off Basement Stair Light when Work Bench Switch Used | |
| ########################################################## | |
| - alias: Lights - Turn Off Basement Stair Light when Work Bench Switch Used | |
| id: 'lights_turn_off_basement_stair_light_when_work_bench_switch_used' | |
| trigger: | |
| - platform: state | |
| entity_id: light.work_bench_light | |
| from: 'on' | |
| to: 'off' | |
| for: | |
| hours: 0 | |
| minutes: 3 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: light.basement_lighting | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.basement_light_1 | |
| - light.basement_light_2 | |
| - light.basement_stairs | |
| ################################################################# | |
| ## Turn On Right Front Porch Light if not On | |
| ################################################################# | |
| - alias: Lights - Turn On Right Front Porch Light if not On | |
| id: 'lights_turn_on_right_front_porch_light_if_not_on' | |
| trigger: | |
| - platform: state | |
| entity_id: light.front_porch_left | |
| to: 'on' | |
| for: | |
| seconds: 60 | |
| condition: | |
| - condition: state | |
| entity_id: light.front_porch_right | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.front_porch_right | |
| ################################################################# | |
| ## Color Modes | |
| ################################################################# | |
| ########################################################## | |
| ## Living Room Lights Random Color On | |
| ########################################################## | |
| - alias: Lights - Living Room Lights Random Color On | |
| id: 'lights_living_room_lights_random_color_on' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.livingroom_rainbow | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.living_room_fan_lights | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_lamps | |
| - light.media_center_lighting | |
| - light.globe | |
| data: | |
| effect: random | |
| brightness_pct: 100 | |
| - delay: '00:00:05' | |
| - service: light.turn_on | |
| entity_id: light.living_room_lamp_1 | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:17' | |
| - service: light.turn_on | |
| entity_id: light.media_center_lighting | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:31' | |
| - service: light.turn_on | |
| entity_id: light.globe | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:43' | |
| - service: light.turn_on | |
| entity_id: light.living_room_lamp_2 | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Living Room Lights Random Color Off | |
| ########################################################## | |
| - alias: Lights - Living Room Lights Random Color Off | |
| id: 'lights_living_room_lights_random_color_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.livingroom_rainbow | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.bedtime | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.living_room_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_accent_lights | |
| data: | |
| effect: stop | |
| - delay: '00:00:05' | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_lamps | |
| data: | |
| effect: stop | |
| transition: 30 | |
| brightness_pct: 100 | |
| color_temp: 447 | |
| - service: light.turn_on | |
| entity_id: light.media_center_lighting | |
| data: | |
| transition: 30 | |
| effect: random | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.globe | |
| data: | |
| effect: stop | |
| transition: 30 | |
| brightness_pct: 20 | |
| color_temp: 366 | |
| ########################################################## | |
| ## Bedroom Lights Random Color On | |
| ########################################################## | |
| - alias: Lights - Bedroom Lights Random Color On | |
| id: 'lights_bedroom_lights_random_color_on' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.bedroom_rainbow | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.USER1s_nightstand | |
| - light.USER2s_nightstand | |
| - light.bedroom_lamp | |
| data: | |
| effect: random | |
| brightness_pct: 100 | |
| - service: light.turn_off | |
| entity_id: | |
| - light.closet_lamp | |
| - light.bedroom_closet_ceiling | |
| - delay: '00:00:05' | |
| - service: light.turn_on | |
| entity_id: light.USER1s_nightstand | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:17' | |
| - service: light.turn_on | |
| entity_id: light.bedroom_lamp | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:31' | |
| - service: light.turn_on | |
| entity_id: light.USER2s_nightstand | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Bedroom Lights Random Color Off | |
| ########################################################## | |
| - alias: Lights - Bedroom Lights Random Color Off | |
| id: 'lights_bedroom_lights_random_color_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.bedroom_rainbow | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.bedtime | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.bedroom_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.USER1s_nightstand | |
| - light.USER2s_nightstand | |
| - light.bedroom_lamp | |
| data: | |
| effect: stop | |
| - delay: '00:00:05' | |
| - service: light.turn_on | |
| entity_id: | |
| - light.USER1s_nightstand | |
| - light.USER2s_nightstand | |
| - light.bedroom_lamp | |
| data: | |
| effect: stop | |
| transition: 30 | |
| color_temp: 447 | |
| brightness_pct: 50 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.closet_lamp | |
| - light.bedroom_closet_ceiling | |
| data: | |
| effect: stop | |
| transition: 30 | |
| brightness_pct: 50 | |
| ########################################################## | |
| ## Office Lamp Random Color On | |
| ########################################################## | |
| - alias: Lights - Office Lamp Random Color On | |
| id: 'lights_office_lamp_random_color_on' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.office_rainbow | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.office_rainbow | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: light.office_lamp | |
| data: | |
| effect: colorloop | |
| transition: 30 | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Office Lamp Random Color Off | |
| ########################################################## | |
| - alias: Lights - Office Lamp Random Color Off | |
| id: 'lights_office_lamp_random_color_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.office_rainbow | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.bedtime | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.office_lamp | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: light.office_lamp | |
| data: | |
| effect: stop | |
| transition: 30 | |
| color_temp: 447 | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Front Porch Lights Random Color On | |
| ########################################################## | |
| - alias: Lights - Front Porch Lights Random Color On | |
| id: 'lights_front_porch_lights_random_color_on' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.front_porch_rainbow | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.bedtime | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: light.front_porch_left | |
| data: | |
| effect: random | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: light.front_porch_right | |
| data: | |
| effect: random | |
| brightness_pct: 100 | |
| - delay: '00:00:05' | |
| - service: light.turn_on | |
| entity_id: light.front_porch_left | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| - delay: '00:00:23' | |
| - service: light.turn_on | |
| entity_id: light.front_porch_right | |
| data: | |
| effect: colorloop | |
| brightness_pct: 100 | |
| ########################################################## | |
| ## Front Porch Lights Random Color Off | |
| ########################################################## | |
| - alias: Lights - Front Porch Lights Random Color Off | |
| id: 'lights_front_porch_lights_random_color_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.front_porch_rainbow | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: light.front_porch | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: light.front_porch | |
| data: | |
| effect: stop | |
| - delay: '00:00:01' | |
| - service: light.turn_on | |
| entity_id: light.front_porch | |
| data: | |
| effect: stop | |
| transition: 60 | |
| brightness_pct: 50 | |
| color_temp: 447 | |
| ################################################################# | |
| ## Pico Remotes | |
| ################################################################# | |
| ################################################################# | |
| ## Living Room Lights On Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Lights On Pico Remote | |
| id: 'lights_living_room_lights_on_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_light_remote | |
| to: '1' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_accent_lights | |
| data: | |
| brightness_pct: 100 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Lights Off Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Lights Off Pico Remote | |
| id: 'lights_living_room_lights_off_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_light_remote | |
| to: '4' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.living_room_accent_lights | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Lights Increase Brightness Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Lights Increase Brightness Pico Remote | |
| id: 'lights_living_room_lights_increase_brightness_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_light_remote | |
| to: '8' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_accent_lights | |
| data: | |
| brightness_step_pct: 10 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Lights Decrease Brightness Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Lights Decrease Brightness Pico Remote | |
| id: 'lights_living_room_lights_decrease_brightness_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_light_remote | |
| to: '16' | |
| condition: | |
| - condition: state | |
| entity_id: light.living_room_accent_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_accent_lights | |
| data: | |
| brightness_step_pct: -10 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Lights Default Color Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Lights Default Color Pico Remote | |
| id: 'lights_living_room_lights_default_color_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_light_remote | |
| to: '1' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 2 | |
| condition: | |
| - condition: state | |
| entity_id: light.living_room_accent_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_accent_lights | |
| data: | |
| color_temp: 447 | |
| ################################################################# | |
| ## Living Room Fan Lights On Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Fan Lights On Pico Remote | |
| id: 'lights_living_room_fan_lights_on_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_fan_remote | |
| to: '1' | |
| condition: | |
| - condition: state | |
| entity_id: light.living_room_fan_lights | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.living_room_fan_lights | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Fan Lights Off Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Fan Lights Off Pico Remote | |
| id: 'lights_living_room_fan_lights_off_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_fan_remote | |
| to: '4' | |
| condition: | |
| - condition: state | |
| entity_id: light.living_room_fan_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.living_room_fan_lights | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Basement Lights On Pico Remote | |
| ################################################################# | |
| - alias: Lights - Basement Lights On Pico Remote | |
| id: 'lights_basement_lights_on_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.basement_stairs_light_switch | |
| to: '1' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_lighting | |
| data: | |
| brightness_pct: 100 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Basement Lights Off Pico Remote | |
| ################################################################# | |
| - alias: Lights - Basement Lights Off Pico Remote | |
| id: 'lights_basement_lights_off_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.basement_stairs_light_switch | |
| to: '4' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.basement_lighting | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Basement Lights Increase Brightness Pico Remote | |
| ################################################################# | |
| - alias: Lights - Basement Lights Increase Brightness Pico Remote | |
| id: 'lights_basement_lights_increase_brightness_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.basement_stairs_light_switch | |
| to: '8' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_lighting | |
| data: | |
| brightness_step_pct: 10 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Basement Lights Decrease Brightness Pico Remote | |
| ################################################################# | |
| - alias: Lights - Basement Lights Decrease Brightness Pico Remote | |
| id: 'lights_basement_lights_decrease_brightness_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.basement_stairs_light_switch | |
| to: '16' | |
| condition: | |
| - condition: state | |
| entity_id: light.basement_lighting | |
| state: 'on' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.basement_lighting | |
| data: | |
| brightness_step_pct: -10 | |
| - delay: | |
| seconds: 1 | |
| ################################################################# | |
| ## Living Room Fan Dimm Lights Pico Remote | |
| ################################################################# | |
| - alias: Lights - Living Room Fan Dimm Lights Pico Remote | |
| id: 'lights_living_room_fan_dimm)lights_pico_remote' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_fan_remote | |
| to: '1' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 2 | |
| condition: | |
| - condition: state | |
| entity_id: light.living_room_fan_lights | |
| state: 'on' | |
| action: | |
| - service: script.turn_on | |
| entity_id: | |
| - script.living_room_fan_light_dimmer | |
| - delay: | |
| seconds: 3 | |
| ################################################################# | |
| ## Living Room Fan Lights Start Dimmer Reset | |
| ################################################################# | |
| - alias: Lights - Living Room Fan Lights Start Dimmer Reset | |
| id: 'lights_living_room_fan_lights_start_dimmer_reset' | |
| trigger: | |
| - platform: state | |
| entity_id: switch.living_room_east_fan_dimmer | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: switch.living_room_east_fan_dimmer | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| action: | |
| - service: switch.turn_off | |
| entity_id: | |
| - switch.living_room_east_fan_dimmer | |
| - switch.living_room_east_fan_dimmer | |
| ################################################################# | |
| ## Notifications | |
| ################################################################# | |
| ################################################################# | |
| ## Front Porch Light Not On iOS Notification | |
| ################################################################# | |
| - alias: Lights - Front Porch Light Not On iOS Notification | |
| id: 'lights_front_porch_light_not_on_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: light.front_porch_left | |
| to: 'on' | |
| for: | |
| seconds: 60 | |
| - platform: state | |
| entity_id: light.front_porch_left | |
| to: 'on' | |
| for: | |
| seconds: 90 | |
| - platform: state | |
| entity_id: light.front_porch_left | |
| to: 'on' | |
| for: | |
| seconds: 120 | |
| - platform: state | |
| entity_id: light.front_porch_left | |
| to: 'on' | |
| for: | |
| seconds: 900 | |
| condition: | |
| - condition: state | |
| entity_id: light.front_porch_right | |
| state: 'off' | |
| - condition: time | |
| after: '00:01:00' | |
| before: '23:44:00' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Front Porch Light Did Not Turn On | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'USER1-home' | |
| push: | |
| category: camera | |
| entity_id: camera.front_porch |