- alias: 'Turn Kitchen Ceiling Light on when there is Movement'
  trigger:
    platform: state
    entity_id: binary_sensor.kitchen_motion_sensor_occupancy
    from: 'off'
    to: 'on'
  action:
    service: light.turn_on
    target:
      entity_id: light.kitchen_ceiling_light

- alias: 'Turn Kitchen Ceiling Light off after last Movement'
  trigger:
    platform: state
    entity_id: binary_sensor.kitchen_motion_sensor_occupancy
    from: 'on'
    to: 'off'
    for:
      minutes: 5
  action:
    service: light.turn_off
    target:
      entity_id: light.kitchen_ceiling_light

- alias: 'Turn Kitchen Lights off when going to Bed'
  trigger:
    platform: state
    entity_id: input_select.bed_mode
    from: 'just on'
    to: 'on'
  action:
    service: light.turn_off
    target:
      entity_id: group.kitchen_lights

- alias: 'Turn Kitchen Ceiling and Counter Light on when there is Movement'
  trigger:
    platform: state
    entity_id: binary_sensor.kitchen_motion_sensor_occupancy
    from: 'off'
    to: 'on'
  action:
    service: light.turn_on
    target:
      entity_id:
        - light.kitchen_ceiling_light
        - light.kitchen_counter_light

- alias: 'Turn Kitchen Ceiling and Counter Light off after last Movement'
  trigger:
    platform: state
    entity_id: binary_sensor.kitchen_motion_sensor_occupancy
    from: 'on'
    to: 'off'
    for:
      minutes: 5
  action:
    service: light.turn_off
    target:
      entity_id:
        - light.kitchen_ceiling_light
        - light.kitchen_counter_light

- alias: 'Turn Kitchen Lights off when going to Bed'
  trigger:
    platform: state
    entity_id: input_select.bed_mode
    from: 'just on'
    to: 'on'
  action:
    service: light.turn_off
    target:
      entity_id: group.kitchen_lights

Augment automation of kitchen lights with recently added counter light
Augment automation of kitchen lights with recently added counter light
