123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- - 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: {}
|