text: #
  # Turn off kitchen
  #
  # Kitchen lights should be off when sleeping.
  #
  # @subscribe input_boolean.night_mode
  #
  - id: kitchen_off
    alias: "Kitchen OFF"
  
    trigger:
      # When night mode is enabled.
      - platform: state
        entity_id: input_boolean.night_mode
        to: 'on'
  
    action:
      # Turn off all lights.
      - service: homeassistant.turn_off
        data:
          entity_id:
            - group.kitchen_lights
  