- id: '1705510128965' alias: Activate coffee brewer timer description: Turns on the coffee brewer electrical switch and starts the timer. trigger: - platform: state entity_id: - input_boolean.activate_coffee_brewer_timer to: 'on' condition: [] action: - service: switch.turn_on target: entity_id: - switch.kaffetimer device_id: [] area_id: [] data: {} - service: timer.start target: entity_id: timer.coffee_brewer_timer data: {} - service: counter.increment target: entity_id: counter.coffee_counter data: {} mode: restart - id: '1706284268833' alias: Deactivate coffee brewer timer description: Turns off stuff when manually switching off the timer trigger: - platform: state entity_id: - input_boolean.activate_coffee_brewer_timer from: 'on' to: 'off' - platform: state entity_id: - timer.coffee_brewer_timer from: active to: idle condition: [] action: - service: input_boolean.turn_off target: entity_id: - input_boolean.activate_coffee_brewer_timer data: {} - service: timer.cancel target: entity_id: timer.coffee_brewer_timer data: {} - service: switch.turn_off target: entity_id: switch.kaffetimer data: {} mode: single - id: '1706284484894' alias: Activate Coffee Brewer at scheduled time description: Starts the coffee brewer timer at the setup time trigger: - platform: time at: input_datetime.coffee_brewer_scheduled_start_time condition: - condition: state entity_id: input_boolean.enable_scheduled_start_of_coffee_brewer state: 'on' action: - service: input_boolean.turn_on target: entity_id: - input_boolean.activate_coffee_brewer_timer device_id: [] area_id: [] data: {} - service: input_boolean.turn_off target: entity_id: input_boolean.enable_scheduled_start_of_coffee_brewer data: {} mode: single - id: '1736266866394' alias: Set Has been Night Flag description: Set that it has been midnight, and that its ok to turn the light on trigger: - platform: time at: 00:30:00 action: - service: input_boolean.turn_on target: entity_id: - input_boolean.ext_light_has_been_night - input_boolean.home_auto_lights_off_has_been_night data: {} - id: '1736266934946' alias: Set Has Been Day Flag description: '' trigger: - platform: time at: '12:30:00' action: - service: input_boolean.turn_on target: entity_id: input_boolean.ext_light_has_been_day - id: '1736267995882' alias: Control Exterior Light description: Control the external lights trigger: - platform: state entity_id: input_boolean.exterior_lights_wanted_state action: - repeat: until: - condition: template value_template: "{{ (states('sensor.exterior_light_status') == states('input_boolean.exterior_lights_wanted_state') and \n states('light.exterior_lights') == states('input_boolean.exterior_lights_wanted_state') ) or \n repeat.index >= 5 }}\n" sequence: - service: light.turn_{{ 'off' if is_state('input_boolean.exterior_lights_wanted_state', 'off') else 'on' }} target: entity_id: - light.exterior_lights - light.exterior_lights_repeater - delay: 00:01:00 - id: '1736268207142' alias: Turn on Exterial Lights In The Evening description: '' trigger: - platform: numeric_state entity_id: - sensor.lux_hallby below: 500 for: seconds: 0 condition: - condition: state entity_id: input_boolean.ext_light_has_been_day state: 'on' action: - service: input_boolean.turn_off target: entity_id: input_boolean.ext_light_has_been_day data: {} - service: input_boolean.turn_on target: entity_id: input_boolean.exterior_lights_wanted_state data: {} - id: '1736268250686' alias: Turn Off Exterior Lights In The Morning description: '' trigger: - platform: numeric_state entity_id: - sensor.lux_hallby above: 710 for: seconds: 0 condition: - condition: state entity_id: input_boolean.ext_light_has_been_night state: 'on' action: - service: input_boolean.turn_off target: entity_id: input_boolean.ext_light_has_been_night data: {} - service: input_boolean.turn_off target: entity_id: input_boolean.exterior_lights_wanted_state data: {}