light:
  - platform: group
    name: Living room main
    entities:
      - light.light_le_1
      - light.light_le_2
      - light.light_le_3
      - light.light_le_4


  - platform: group
    name: Living room ambient
    entities:
      - light.living_room_ambient_main
      - light.light_lohas_2

  - platform: group
    name: Living room
    entities:
      - light.light_le_1
      - light.light_le_2
      - light.light_le_3
      - light.light_le_4
      - light.hue_ambiance_7
      - light.living_room_ambient_main
      - light.light_lohas_2

  # - platform: group
  #   name: Master bedroom main
  #   entities:
  #     - light.hue_2
  #     - light.hue_3
  #     - light.hue_4
  #     - light.hue_5

  - platform: group
    name: Master bedroom
    entities:
      - light.master_bedroom_main
      - light.bedside

  # - platform: group
  #   name: Kitchen main
  #   entities:
  #     - light.tradfri_1
  #     - light.hue_ambiance_6
  #     - light.hue_ambiance_8

  # - platform: group
  #   name: Kitchen secondary
  #   entities:
  #     - light.hue_ambiance_1
  #     - light.hue_ambiance_2
  #     - light.hue_ambiance_3
  #     - light.hue_ambiance_4

  # - platform: group
  #   name: Kitchen
  #   entities:
  #     - light.tradfri_1
  #     - light.hue_ambiance_6
  #     - light.hue_ambiance_8
  #     - light.hue_ambiance_1
  #     - light.hue_ambiance_2
  #     - light.hue_ambiance_3
  #     - light.hue_ambiance_4

  # - platform: group
  #   name: Hallway main
  #   entities:
  #     - light.hue_ambiance_5
  #     - light.hue_1

  # - platform: group
  #   name: Hallway entrance
  #   entities:
  #     - light.hue_white_1
  #     - light.hue_white_2

  # - platform: group
  #   name: Hallway
  #   entities:
  #     - light.hue_ambiance_5
  #     - light.hue_1
  #     - light.hue_white_1
  #     - light.hue_white_2

  - platform: group
    name: On after dark
    entities:
      # LR main
      - light.light_le_1
      - light.light_le_2
      - light.light_le_3
      - light.light_le_4
      # PC
      - light.hue_ambiance_7
      # LR ambiance
      - light.living_room_ambient_main
      - light.light_lohas_2

      - light.master_bedroom_main
      - light.bedside
      - light.hallway


script:
  turn_on_all_lights:
    sequence:
      service: light.turn_on
      entity_id:
        # LR main
        - light.light_le_1
        - light.light_le_2
        - light.light_le_3
        - light.light_le_4
        # PC
        - light.hue_ambiance_7
        # LR ambiance
        - light.living_room_ambient_main
        - light.light_lohas_2
        - light.master_bedroom_main
        - light.bedside

        - light.hallway
        - light.kitchen
  turn_off_all_lights:
    sequence:
      service: light.turn_off
      entity_id:
        # LR main
        - light.light_le_1
        - light.light_le_2
        - light.light_le_3
        - light.light_le_4
        # PC
        - light.hue_ambiance_7
        # LR ambiance
        - light.living_room_ambient_main
        - light.light_lohas_2
        - light.master_bedroom_main
        - light.bedside

        - light.hallway
        - light.kitchen

homeassistant:
  customize:
    # Living room
    light.living_room:
      icon: mdi:lightbulb-group

    light.living_room_main:
      icon: bha:ceiling-spot-lamp

    light.hue_ambiance_7:
      friendly_name: PC
      icon: bha:outdoor-lamp-variant

    light.living_room_ambient:
      icon: mdi:floor-lamp-dual
    light.light_lohas_2:
      friendly_name: Living room ambient secondary

    # Master bedroom
    light.master_bedroom:
      friendly_name: Bedroom
      icon: mdi:lightbulb-group

    light.master_bedroom_main:
      friendly_name: Bedroom main
      icon: bha:ceiling-spot-lamp

    light.bedside:
      icon: mdi:desk-lamp

    # Kitchen
    light.kitchen_main:
      icon: bha:ceiling-spot-lamp
    light.kitchen_secondary:
      icon: bha:ceiling-spot-lamp

    # Hallway
    light.hallway:
      icon: mdi:lightbulb-group

    light.hallway_entrance:
      icon: bha:ceiling-spot-lamp

    light.hallway_main:
      icon: bha:ceiling-spot-lamp

    # Guest Bedroom
    light.tradfri_large:
      icon: bha:table-lamp-variant
      name: Night stand
